Skip to content

Commit

Permalink
Use 'model set run clock' routine in FV3 NUOPC cap. (ufs-community#967)
Browse files Browse the repository at this point in the history
* Update FV3 cap by adding 'model set run clock' specialization routine. Because FV3 cap does not modify 'Earth clock' anymore in case of a restarted run, that adjustment is now done in the UFS driver.
* Fix model_configure file for two tests to define `fhrot` parameter.
  • Loading branch information
DusanJovic-NOAA authored Dec 27, 2021
1 parent 803e03a commit 3d995d7
Show file tree
Hide file tree
Showing 20 changed files with 2,624 additions and 1,894 deletions.
2 changes: 1 addition & 1 deletion FV3
4 changes: 0 additions & 4 deletions doc/UsersGuide/source/InputsOutputs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1146,10 +1146,6 @@ shows the following parameters that can be set in *model_configure* at run-time.
- frequency to output restart file or forecast hours to write out restart file
- integer
- 0 (0: write restart file at the end of integration; 12, -1: write out restart every 12 hours; 12 24 write out restart files at fh=12 and 24)
* - atm_coupling_interval_sec
- fast coupling interval in seconds for atmosphere
- real(8)
- 900
* - quilting
- flag to turn on quilt
- logical
Expand Down
4 changes: 3 additions & 1 deletion driver/UFS.F90
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,9 @@ PROGRAM UFS
CALL ESMF_TimeIntervalSet(restartOffset, h=fhrot, rc=RC)
ESMF_ERR_ABORT(RC)
CURRTIME = STARTTIME + restartOffset
call ESMF_ClockSet(CLOCK_MAIN, currTime=CURRTIME, rc=RC)
call ESMF_ClockSet(CLOCK_MAIN, currTime=CURRTIME, &
timeStep=(TIMESTEP-restartOffset), &
rc=RC)
ESMF_ERR_ABORT(RC)
endif
! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Expand Down
198 changes: 117 additions & 81 deletions tests/RegressionTests_cheyenne.gnu.log

Large diffs are not rendered by default.

765 changes: 402 additions & 363 deletions tests/RegressionTests_cheyenne.intel.log

Large diffs are not rendered by default.

594 changes: 351 additions & 243 deletions tests/RegressionTests_gaea.intel.log

Large diffs are not rendered by default.

202 changes: 118 additions & 84 deletions tests/RegressionTests_hera.gnu.log

Large diffs are not rendered by default.

602 changes: 357 additions & 245 deletions tests/RegressionTests_hera.intel.log

Large diffs are not rendered by default.

549 changes: 326 additions & 223 deletions tests/RegressionTests_jet.intel.log

Large diffs are not rendered by default.

593 changes: 352 additions & 241 deletions tests/RegressionTests_orion.intel.log

Large diffs are not rendered by default.

382 changes: 227 additions & 155 deletions tests/RegressionTests_wcoss_cray.log

Large diffs are not rendered by default.

607 changes: 359 additions & 248 deletions tests/RegressionTests_wcoss_dell_p3.log

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion tests/parm/datm_cdeps_configure.IN
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ nhours_fcst: @[FHMAX]
RUN_CONTINUE: .false.
ENS_SPS: .false.
dt_atmos: @[DT_ATMOS]
atm_coupling_interval_sec: @[coupling_interval_fast_sec]
calendar: 'julian'
fhrot: @[FHROT]
nfhout: @[NFHOUT]
Expand Down
1 change: 0 additions & 1 deletion tests/parm/model_configure.IN
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dt_atmos: @[DT_ATMOS]
calendar: 'julian'
restart_interval: @[RESTART_INTERVAL]
output_1st_tstep_rst: .false.
atm_coupling_interval_sec: @[coupling_interval_fast_sec]

quilting: @[QUILTING]
write_groups: @[WRITE_GROUP]
Expand Down
1 change: 0 additions & 1 deletion tests/parm/model_configure_fhout.IN
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ calendar: 'julian'
restart_interval: @[RESTART_INTERVAL]
fhrot: @[FHROT]
output_1st_tstep_rst: .false.
atm_coupling_interval_sec: @[coupling_interval_fast_sec]

quilting: @[QUILTING]
write_groups: @[WRITE_GROUP]
Expand Down
1 change: 1 addition & 0 deletions tests/parm/model_configure_regional.IN
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ start_hour: 00
start_minute: 0
start_second: 0
nhours_fcst: @[FHMAX]
fhrot: @[FHROT]

dt_atmos: 225
cpl: .false.
Expand Down
1 change: 1 addition & 0 deletions tests/rt_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ check_results() {

echo >> ${REGRESSIONTEST_LOG}
grep "The total amount of wall time" ${RUNDIR}/out >> ${REGRESSIONTEST_LOG}
grep "The maximum resident set size" ${RUNDIR}/out >> ${REGRESSIONTEST_LOG}
echo >> ${REGRESSIONTEST_LOG}

TRIES=''
Expand Down
8 changes: 6 additions & 2 deletions tests/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,12 @@ fi
if [[ $skip_check_results = false ]]; then
check_results
else
echo "Test ${TEST_NR} ${TEST_NAME} RUN_SUCCESS" > ${REGRESSIONTEST_LOG}
echo;echo;echo >> ${REGRESSIONTEST_LOG}
echo >> ${REGRESSIONTEST_LOG}
grep "The total amount of wall time" ${RUNDIR}/out >> ${REGRESSIONTEST_LOG}
grep "The maximum resident set size" ${RUNDIR}/out >> ${REGRESSIONTEST_LOG}
echo >> ${REGRESSIONTEST_LOG}
echo "Test ${TEST_NR} ${TEST_NAME} RUN_SUCCESS" >> ${REGRESSIONTEST_LOG}
echo;echo;echo >> ${REGRESSIONTEST_LOG}
fi

if [[ $SCHEDULER != 'none' ]]; then
Expand Down
1 change: 1 addition & 0 deletions tests/tests/control_wam
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ export H2O_PHYS=.true.
export NFHOUT=6
export NFHMAX=24
export NFHOUT_HF=6
export FHROT=18
2 changes: 2 additions & 0 deletions tests/tests/regional_restart
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ export TASKS=68
export INPES=10
export JNPES=6
export OUTPUT_FH="15 18 21 24"

export FHROT=12

0 comments on commit 3d995d7

Please sign in to comment.