-
Notifications
You must be signed in to change notification settings - Fork 131
Update gcycle to be able to read re-gridded GSI increment land files. #1010
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
Merged
GeorgeGayno-NOAA
merged 14 commits into
ufs-community:develop
from
ClaraDraper-NOAA:feature/gcycle_fv3incr
Feb 4, 2025
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
75c736e
Updates to generalize inputs land increments to Gaussian grid and fv3…
ClaraDraper-NOAA 1a140ab
Merge branch 'develop' into feature/gcycle_fv3incr
ClaraDraper-NOAA 8fedf3d
Udpated namelist variables in gcycle tests.
ClaraDraper-NOAA a635ce7
update reg_test namelist to use new variables.
ClaraDraper-NOAA 633f9bf
Added LSOIL_INCR variable.
ClaraDraper-NOAA ddde3f3
Update to test for new read_data arguments.
ClaraDraper-NOAA 2a4848d
Fixed filename in ctest for soil increment.
ClaraDraper-NOAA c66ed03
Merge branch 'develop' into feature/gcycle_fv3incr
ClaraDraper-NOAA 0d14319
Added new test for adding pre-interpolated increments from GSI to soi…
ClaraDraper-NOAA 9f78469
Tidy up comments.
ClaraDraper-NOAA 76bc5a9
Clarified do_lndinc, do_soi_inc, and do_sno_inc in comments and script.
ClaraDraper-NOAA 1d60dc2
updated INTEPR_LNDINC to GCYCLE_INTERP_LNDINC
ClaraDraper-NOAA 07ac8bd
addressed George's PR, fixed broken reg-test.
ClaraDraper-NOAA 4d6403f
Merge branch 'develop' into feature/gcycle_fv3incr
ClaraDraper-NOAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| #!/bin/bash | ||
|
|
||
| #------------------------------------------------------------------ | ||
| # Run global_cycle for a C192 case to test the ingest and | ||
| # application of soil moisture and temperature increments | ||
| # from the GSI, into Noah-MP restarts. | ||
| # Compare output to a baseline set of files using the 'nccmp' | ||
| # utility. | ||
| #------------------------------------------------------------------ | ||
|
|
||
| set -x | ||
|
|
||
| NCCMP=${NCCMP:-$(which nccmp)} | ||
|
|
||
| export MAX_TASKS_CY=6 | ||
|
|
||
| export HOMEgfs=$NWPROD | ||
|
|
||
| export FIXgfs=$HOMEreg/fix | ||
|
|
||
| export CYCLEXEC=$HOMEgfs/exec/global_cycle | ||
|
|
||
| export CDATE=2019073000 | ||
| export FHOUR=00 | ||
| export DELTSFC=6 | ||
|
|
||
| export CASE=C192 | ||
| export OCNRES=99999 | ||
|
|
||
| export COMIN=$HOMEreg/input_data_noahmp | ||
|
|
||
| export JCAP=1534 | ||
| export LONB=3072 | ||
| export LATB=1536 | ||
|
|
||
| export DONST="NO" | ||
| export use_ufo=.true. | ||
|
|
||
| export DO_SFCCYCLE=".FALSE." | ||
| export DO_LNDINC=".TRUE." | ||
| export DO_SOI_INC=".true." | ||
| export GCYCLE_INTERP_LNDINC=".false." | ||
| export LSOIL_INCR=3 | ||
|
|
||
| export VERBOSE=YES | ||
| export CYCLVARS=FSNOL=-2.,FSNOS=99999., | ||
|
|
||
| $HOMEgfs/ush/global_cycle_driver.sh | ||
|
|
||
| iret=$? | ||
| if [ $iret -ne 0 ]; then | ||
| set +x | ||
| echo "<<< C192 GSI-TILE based LANDINC SOIL NOAHMP CYCLE TEST FAILED. >>>" | ||
| exit $iret | ||
| fi | ||
|
|
||
| test_failed=0 | ||
|
|
||
| cd $DATA | ||
| for files in *tile*.nc | ||
| do | ||
| if [ -f $files ]; then | ||
| echo CHECK $files | ||
| $NCCMP -dmfqS $files $HOMEreg/baseline_data/c192.gsitile_lndincsoilnoahmp/$files | ||
| iret=$? | ||
| if [ $iret -ne 0 ]; then | ||
| test_failed=1 | ||
| fi | ||
| fi | ||
| done | ||
|
|
||
| set +x | ||
| if [ $test_failed -ne 0 ]; then | ||
| echo | ||
| echo "**********************************************" | ||
| echo "<<< C192 GSI-TILE based LANDINC SOIL-NOAHMP CYCLE TEST FAILED. >>>" | ||
| echo "**********************************************" | ||
| if [ "$UPDATE_BASELINE" = "TRUE" ]; then | ||
| $HOMEgfs/reg_tests/update_baseline.sh $HOMEreg "c192.gsitile_lndincsoilnoahmp" $commit_num | ||
| fi | ||
|
ClaraDraper-NOAA marked this conversation as resolved.
|
||
| else | ||
| echo | ||
| echo "*****************************************" | ||
| echo "<<< C192 GSI-TILE based LANDINC SOIL-NOAHMP CYCLE TEST PASSED. >>>" | ||
| echo "*****************************************" | ||
| fi | ||
|
|
||
| exit | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.