-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add sub-regioan diag output example in 1D case #39
Conversation
* Clean up of the light and phytoplankton growth calculations * update baseline answers --------- Co-authored-by: Charles Stock <[email protected]> Co-authored-by: yuchengt900 <[email protected]>
This will be relevant for the NEP and Arctic domains |
Following our discussion this morning, I'd appreciate it if someone could review this PR when there's a chance. |
My understanding is that the latest FMS is not compatible with the gnu compiler and I therefore can't test this at home. I hope to get to this on gaea next week. |
@kshedstrom, Yes, FMS2 does not work with the latest GCC. It only works with previous versions of GCC. |
@uwagura, it would be nice if you could review this PR when you get chance, especially the new XML file, which is related to the topic of YAML-based diagnostics that @charliestock mentioned. Any comments are more than welcome! |
Following the NWA xml example, I can compile with yaml and get it to run. However, trying for FMS 2024.01.02 causes it to look for that version of ice_param here:
and it doesn't find it. I made a separate ICE_PARAM_TAG for it. Then I got bold and asked for my favorite vertical sections and it failed on me:
The mess is here: /gpfs/f5/cpo_rmom6/scratch/Katherine.Hedstrom/work/run75_1x1m0d_1648x1o.o135017531 |
My bad - I needed to use USE_INDEX_DIAGNOSTIC_AXES = True. Why did you say it's for FMS1? |
@kshedstrom, thanks for your testing. I fixed the The I took a quick look at your config and noticed that the For Artic we can either set |
Tagging @uramirez8707 here just in case he is needed. The diag table to diag yaml tool translates the diag table, and the diag table only supports latlon. Yes you're correct @yichengt900 . If your diag_table file has a subregion with local indicies and not latlon, then then output produced is probably not what you are expecting, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sucessfully completed regression test for layout
I recompiled outside of my conda environment and things went rather better (FMS 2024.01.02). Everything is fine as long as I use the old style diag format. Without my small cross-sections, the new format still fails:
|
@kshedstrom Can you point me to your diag_table.yaml? |
I just copied it to /ncrc/home2/Katherine.Hedstrom/ESMG/ESMG-configs/Arctic6/mid_12 |
@kshedstrom It looks like I don't have permissions to view the file
|
Oops, sorry, fixed. |
It looks like your table was generated using an older version of the converter. Before this update which combined the On gaea, you can do
on your system, please updated your install of fms_yaml_tools. |
Yes, that works better. Thanks! |
This PR inclues the following changes:
libyaml
build process;diag_table
todiag_table.yaml
;Keep in mind the old diag_manager code has been kept intact and will be used by default, so these updates should not have impact to your current experiments. If you want to try the new indices subsetting (comes with the new re-written diag manager), you will have to first build the model system with FMS2 as well as
-Duse_yaml
flag, and setuse_modern_diag = .true.
in yourdiag_manager_nml
. You also have to prepare a yaml format of diag_table.The sub-region diagnostic works ok with indices for both
NEP
andArctic
domains (see below example plot from Arctic domain). TheNWA
domain works with either latlon or indices subsetting.Also, if you prefer FMS1 and still want to use index subsetting, you can try turning on
USE_INDEX_DIAGNOSTIC_AXES = True
inMOM6
. This should allow you to specify theindex
instead oflatlon
for sub-region diagnostic output.