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

Create cplhist mode for dice #290

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

NickSzapiro-NOAA
Copy link

Description of changes

A new dice_datamode_cplhist_mod is adapted from docn_datamode_cplhist_mod.

Specific notes

Contributors other than yourself, if any:

CDEPS Issues Fixed (include github issue #): NOAA-EMC#61

Are there dependencies on other component PRs (if so list):

Are changes expected to change answers (bfb, different to roundoff, more substantial): bfb for existing and new for new datamode

Any User Interface Changes (namelist or namelist defaults changes): Existing sst_constant_value namelist value is used in docn_datamode_cplhist_advance to handle SST units in K and C.

Testing performed (e.g. aux_cdeps, CESM prealpha, etc): UFS regression testing (ufs-community/ufs-weather-model#2186)

Hashes used for testing: See ufs-community/ufs-weather-model#2186

* Adapt docn_datamode_cplhist for dice_datamode_cplhist

* Fix .or. and local  variables have different names in docn and dice

* Add Si_imask. Decide whether to have flds_i2o_per_cat for cplhist method.

* Copy sea ice stream fields to export state fields via dshr_dfield_add

* Switches So_t from C to K. Decide on which/add switch

* Overwrite missing value of 0 K in Si_t

* Handle So_t in C and K in docn_datamode_cplhist_mod.F90

Need model SST to be in K
if (minval(So_t) .LT. 100.0_r8), convert C-->K

* Only fill docn_datamode_cplhist export variables if associated. Handle units of So_t based on namelist input

* Default convert SST C to K (as currently). Then switch based on optional sst_constant_value

* Allow null return for taux too in dice/dice_datamode_cplhist_mod.F90

* Add doc for dice cplhist mode to dice.rst
@NickSzapiro-NOAA
Copy link
Author

This shouldn't affect baselines in CESM. I am happy to start CESM testing to confirm but am learning on the fly on derecho. Can I check these steps?

git clone https://github.com/escomp/cesm.git
cd cesm
./bin/git-fleximod update
cd cime/scripts
nohup nice -n 19 ./create_test --xml-category aux_cdeps --xml-machine derecho -r /glade/derecho/scratch/$USER/aux_cdeps/ --parallel-jobs 6 --project $PROJECT &

I don't see where baselines are stored to compare.

Copy link
Contributor

@jedwards4b jedwards4b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove the test for rc after the restart_write calls - errors are handled internally in that subroutine and do not return.

dice/ice_comp_nuopc.F90 Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

2 participants