Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSTICE_DATA_FILENAME does not allow for multiple sst data files #35

Open
jedwards4b opened this issue Oct 7, 2020 · 8 comments
Open

Comments

@jedwards4b
Copy link
Contributor

The fortran allows for multiple files in variable stream_fldfilename however there is currently no way to
set more than one file without modifying the code.

@dabail10
Copy link
Collaborator

dabail10 commented Oct 7, 2020

Do we need to fix this in CICE5? Mariana is working on the new prescribed ice with CDEPS for CICE6.

@jedwards4b
Copy link
Contributor Author

I opened it in cice5 because a user is trying to read in multiple sst data files in cesm2.1.3 - I will submit a PR to fix it.

@jedwards4b
Copy link
Contributor Author

jedwards4b commented Oct 7, 2020

After looking into this problem we have found that it would not be easy to address. The workaround is to make changes in your source as follows:
edit the file components/cice/cime_config/namelist_definition_cice.xml
and make the following change:

@@ -1877,8 +1877,8 @@
     </values>
   </entry>
 
-  <entry id="stream_fldfilename" modify_via_xml="SSTICE_DATA_FILENAME">
-    <type>char</type>
+  <entry id="stream_fldfilename">
+    <type>char(400)</type>
     <category>icepresc</category>

Then list your files in user_nl_cice:

stream_fldfilename =filename1, filename2, filename3, ...

@dabail10
Copy link
Collaborator

dabail10 commented Oct 7, 2020

I guess I don't understand what code changes are needed? The variable stream_fldfilename is already a character string array in ice_prescribed_mod.F90. This is CICE5. I haven't looked at CICE6 yet.

@dabail10
Copy link
Collaborator

dabail10 commented Oct 7, 2020

Does the XML string SSTICE_DATA_FILENAME take a character string of arrays? Also, do you only want 10 files possible? The fortran code allows for 400.

@dabail10
Copy link
Collaborator

dabail10 commented Oct 7, 2020

Nevermind. I just read the title. :)

@jedwards4b
Copy link
Contributor Author

Updated the comment to reflect the possibility of 400 files.

@dabail10
Copy link
Collaborator

dabail10 commented Oct 7, 2020

So, do you want to change CESM_CICE5 or just have the workaround available?

sweidy pushed a commit to sweidy/CESM_CICE5 that referenced this issue Aug 16, 2024
cam_cesm2_1_rel_38: Updates to compsets at 2-deg resolution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants