Repository navigation
Conversation
|
Hi @mhrib! I'd like to understand better how these CICE changes would interface with other models. Are you running this coupled in DMI's systems? Does it make sense to use it in standalone mode, at least for testing purposes? We will want to have some CICE standalone tests with it turned on for regression etc going forward, so the standalone driver will also need to be modified. And this forcing option will need documentation beyond the namelist settings. We can add the forcing file to our zenodo offerings and the forcing wiki page once the PR is merged (or ready to be). |
No, no further configuration is needed in Icepack. It uses the present one. However added In which is used by the icepack function The default for dt_wavefracture is dt, ie. wave fracture computations every timestep (as long as wave forcing exists).
Not "real" coupling. Only off-line coupling for the time being, like:
Input files are created as post-processing jobs mainly interpolating between CICE and WAM grids.
Yes, absolutely. Both for testing and to get a feeling for how different wave spectra influences both the sea-ice edge but also how far swells propagates and interacts. Forcing COULD be taken from another WAVE model similar as Atmospheric forcing in a non-coupled system toprovide short forecasts or hindcasts.
Good idea. But then I need some assistance on how to do it. Should I provide a "forcing.WAM.nc" file for one of the standard grids ?? ** Could also consider IF "WAM" is the best name for |
|
Quick clarifications,
And if it is needed, we should probably implement a separate control, via a new nameless parameter, that specifies the SOURCE of the spectrum separately. New nameless parameter ideas: “wave_spectrum_source”= “file”/“coupled”/“none”? Or “wave_spectrum_format”= “file”/“coupled”/“none”? - If we go this route, as mentioned above, we should avoid using ‘WAM’ - since this can apply to any externally provided wave spectra data.
|
That would be nice!
Given @erinethomas's comments above, I think you should use A general comment (not your fault) is that the meaning of 'constant' We're happy to help sort out the configuration options and with publishing a sample forcing file for testing. |
|
@erinethomas : Thanks for the clarifications.
Obviously I have misunderstood the meaning of "constant" for the namelist variable
Yes exactly. For now on it is only off-line coupling with (much) lower wave forcing interval than the CICE time step.
Which grid would you suggest and approx which time interval? I assume that it should only be a small NetCDF time with only two or three time steps, which overlap with existing 'standard' forcing files. The purpose of the file is only to test if future changes is still BFB and nothing more, which only needs a few timesteps ?? This can perhaps be done separated to this poll request? Or is the setup of a test case fast done? |
It's better to include it with this PR, since it improves our confidence in the new code via an additional test. You'll need to update the cice standalone driver, then you can run various test suites to test bit-for-bitness without your option (they are easy to run following instructions in the documentation). Use one of the existing FSD tests as guidance for creating your own (perhaps with a variant of set_nml.fsd12ww3) and let us know if you have questions. Some of our tests only run a day, which is probably long enough for this purpose. @dabail10 @lettie-roach, please weigh in if you have suggestions for a particular test based on what you've been doing. |
@eclare108213 It is tested locally on the "DMI-HPC" How do I add this to: https://github.com/CICE-Consortium/CICE/wiki/CICE-Input-Data |
|
@apcraig Is the cancelled GHActions job for macos-15 what you would expect? |
|
I have resubmitted the failed test. This seems to be happening intermittently at the moment, not sure why. It looks like resources aren't available to run the tests. |
eclare108213
left a comment
There was a problem hiding this comment.
This is looking good to me, a few comments below.
Thank you for the gx3 test case and forcing. You can submit the forcing file to the CICE community on zenodo. Once that's accepted (by me), we can add the DOI to the CICE Input Data wiki.
There is a section of the CICE documentation for standalone forcing, but it has not been kept up to date. For now, please write a short paragraph describing this data (what it is, where it came from, how it is used) as a PR comment. I'll try to get the documentation updated quickly and include yours at that time.
Can this same forcing file be used for tests with other values of dt_wavespec, e.g. -1?
|
Out of curiosity, is WAM an acronym? What does it stand for? When I see "ww3" my mind reads "wave watch 3", and it would be nice to have a similarly meaningful definition for WAM. Wave Asomething Model? Danish is fine... |
|
Nothing so good. WAM = WAve Model |
yes. Also tested. For "-1" it does the wave fracture at EVERY time step (slow). For "0" only at "forcing time" and for a positive number at the given timestep (has to be an integer division of "dt")
Done. I have uploaded the data file I used for the test-case to Zenodo. A test error is introduced I tried to make the WAVE forcing reader in CICE general for both WAM and WW3, and thereby changed But
However:
I could see a point in using What I have done / just pull'ed Continued with This is working "as before" and with the new time varying format. Then it can easily be generalized later if desired? |
|
The wave forcing data file has been accepted at zenodo, https://doi.org/10.5281/zenodo.24315918 |
|
I think it is ready for review and perhaps merging now: 19 measured results of 19 total results |
eclare108213
left a comment
There was a problem hiding this comment.
Please clean up the documentation as noted in my comments - thanks. Before merging, one of us with edit permission needs to add the link to the new wave forcing file to the cice input forcing wiki page. Then it would be a good idea to run the new code through a larger battery of tests to check that all works as expected, including reading and using the new data file. I expect it's fine but it's good for someone not already set up to go through the whole process and make sure it works. (I would but have run out of time this month...)
…racture computations
…read ONCE at the start time
For detailed information about submitting Pull Requests (PRs) to the CICE-Consortium,
please refer to: https://github.com/CICE-Consortium/About-Us/wiki/Resource-Index#information-for-developers
PR checklist
Short (1 sentence) summary of your PR:
Option for time varying wave spectrum forcing
Developer(s):
@mhrib (Mads Hvid Ribergaard)
Suggest PR reviewers from list in the column to the right.
@apcraig
@lettie-roach
@eclare108213
Please copy the PR test results link or provide a summary of testing completed below.
19 measured results of 19 total results
19 of 19 tests PASSED
0 of 19 tests PENDING
0 of 19 tests MISSING data
0 of 19 tests FAILED
How much do the PR code changes differ from the unmodified code?
Does this PR create or have dependencies on Icepack or any other models?
Does this PR update the Icepack submodule? If so, the Icepack submodule must point to a hash on Icepack's main branch.
Does this PR add any new test cases?
Is the documentation being updated? ("Documentation" includes information on the wiki or in the .rst files from doc/source/, which are used to create the online technical docs at https://readthedocs.org/projects/cice-consortium-cice/. A test build of the technical docs will be performed as part of the PR testing.)
Please document the changes in detail, including why the changes are made. This will become part of the PR commit log.
UPDATE AFTER first pull request
I have corrected my misunderstandings in FSD calculations as nicely explained in comments below by: @erinethomas
Changes:
wave_spec_filenamelist parameterwave_spec_type= 'WAM'. Instead:timeandwavefreq, then use the new reader, which reads in provided wave frequencies and wave forcing record times. If not, then use the existing forced to 6-hourly interval and hard-coded frequencies. AND read only wave forcing ONCE (the update call was comment'ed out in CICE_RunMod)wave_spec_type: 'constant' and 'random'dt_wavefracture, which forces the interval for wave fracture calculations. Default is every timestep (-1: dt). Else a fracture step of CICE time stepdtincreasing the "wave fracture forcing" according todt_wavefracturetimesteptimeis not part of the NetCDF wave forcing file.set_nml.fsd12wam. Test if "WAM" forcing can be read correctly including time info and wave frequencies from file. Runs for one day only similar asfsd12ww3on the GX3 domain. REQUIRES a new test forcing file: CICE_data/forcing/gx3/WAM/wam.20050101_efreq_wavefreq_time_remapgx3.ncExisting
At present, using wave forcing, the wave frequencies and number of frequencies are (almost) hardcoded. Options for wave_spec_type is:
New
Introduce a new option for time varying directional integrated wave spectrum and given frequencies:
efreq)Time axis is like
HYCOMtime format. Updated to use "units" attribute if exist to make it general using "days since yyyy-mm-dd HH:MM:SS.A new namelist parameter is introduced,
dt_wavefracture. It gives the interval (seconds) between wave fracture computations and it is scaled by the interval. Default is every CICE timestep (dt) given as -1.NOTE: The reason for choosing the name
WAMis, that we use WAM at DMI . But it can - of course - be named differently if preferred. Especially now time is generalized usingtimeattributeunitsusing"days since yyyy-mm-dd HH:MM:SS"syntax or similar taken from the NetCDF forcing file.Other modifications
Update
ice_get_ncvarsizeroutine:Now extract variable size from either a dimension parameter or from a variable. Using interface it can also handle / extract sizes from an array - eg 4D variable
efreqabove.Add
ice_read_nc_refdateroutine:Make time vector general: Use "units" attribute in NetCDF time variable evaluating: "days since yyyy-mm-dd HH:MM:SS".
Add
ice_nc_has_varroutine:Check if a NetCDF file contain a specific variable. True/False.
Minor adjustments of reading
hycomatmospheric fields.Same behaviour.
My own test using "WAM" forcing data and "HYCOM" Atmospheric forcing format touch the cases above without any problems.