Skip to content

Commit

Permalink
flexible output hour for history files and and update MOM6 to GFDL 2…
Browse files Browse the repository at this point in the history
…0210723 (ufs-community#691)

* add code changes for flexible output hour
* replace FDIAG with OUTPUT_FH in test script
* fix RESTART_INTERVAL for control_atm_aerosols test
* Fix for new hera ecflow requirements
* update mom6 to GFDL 20210723
* update fv3 for print line with gnu
* remove nemsio in model_configure_fhout.IN
* revert FMS2 to FMS1 in MOM6-interface/mom6_files.cmake for gnu compiler
* Changes to keep utests up to date with PR 691

Co-authored-by: Jun Wang <junwang-noaa@users.noreply.github.com>
Co-authored-by: Brian Curtis <brian.curtis@noaa.gov>
Co-authored-by: MinsukJi-NOAA <minsuk.ji@noaa.gov>
Co-authored-by: jiandewang <jiande.wang@noaa.gov>
  • Loading branch information
5 people authored Jul 27, 2021
1 parent 98dfa96 commit 74a34d2
Show file tree
Hide file tree
Showing 110 changed files with 3,081 additions and 2,696 deletions.
2 changes: 1 addition & 1 deletion FV3
2 changes: 1 addition & 1 deletion MOM6-interface/MOM6
Submodule MOM6 updated 105 files
915 changes: 484 additions & 431 deletions tests/RegressionTests_gaea.intel.log

Large diffs are not rendered by default.

158 changes: 81 additions & 77 deletions tests/RegressionTests_hera.gnu.log

Large diffs are not rendered by default.

955 changes: 504 additions & 451 deletions tests/RegressionTests_hera.intel.log

Large diffs are not rendered by default.

921 changes: 487 additions & 434 deletions tests/RegressionTests_jet.intel.log

Large diffs are not rendered by default.

947 changes: 500 additions & 447 deletions tests/RegressionTests_orion.intel.log

Large diffs are not rendered by default.

529 changes: 291 additions & 238 deletions tests/RegressionTests_wcoss_cray.log

Large diffs are not rendered by default.

994 changes: 535 additions & 459 deletions tests/RegressionTests_wcoss_dell_p3.log

Large diffs are not rendered by default.

14 changes: 4 additions & 10 deletions tests/default_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export NPY=97
export NPZ=64
export NPZP=65
export NSTF_NAME=2,1,1,0,5
export FDIAG=0,1,2,3,4,5,6,7,8,9,10,11,12,15,18,21,24,27,30,33,36,39,42,45,48
export OUTPUT_FH="0 1 2 3 4 5 6 7 8 9 10 11 12 15 18 21 24 27 30 33 36 39 42 45 48"
export NFHOUT=3
export NFHMAX_HF=12
export NFHOUT_HF=1
Expand Down Expand Up @@ -695,11 +695,7 @@ export DIAG_TABLE_ADDITIONAL=''

export FHROT='0'
export NSOUT='-1'
export FDIAG='6'
export NFHOUT='6'
#no high freq fv3 output
export NFHMAX_HF='-1'
export NFHOUT_HF='-1'
export OUTPUT_FH='6 -1'
export FHZERO=${FHZERO}

export CPLFLX='.T.'
Expand Down Expand Up @@ -820,8 +816,7 @@ export SDAY='01'
export SHOUR='00'
export CDATE=${SYEAR}${SMONTH}${SDAY}${SHOUR}

export NFHOUT=6
export FDIAG=6
export NFHOUT="6"
export DT_ATMOS='900'
export DT_CICE=${DT_ATMOS}
export DT_DYNAM_MOM6='1800'
Expand Down Expand Up @@ -932,8 +927,7 @@ export SDAY='01'
export SHOUR='00'
export CDATE=${SYEAR}${SMONTH}${SDAY}${SHOUR}

export NFHOUT=6
export FDIAG=6
export NFHOUT="6"
export DT_ATMOS='900'
export DT_CICE=${DT_ATMOS}
export DT_DYNAM_MOM6='1800'
Expand Down
1 change: 1 addition & 0 deletions tests/detect_machine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ case $(hostname -f) in
hfe10) MACHINE_ID=hera ;; ### hera10
hfe11) MACHINE_ID=hera ;; ### hera11
hfe12) MACHINE_ID=hera ;; ### hera12
hecflow01) MACHINE_ID=hera ;; ### heraecflow01

fe1) MACHINE_ID=jet ;; ### jet01
fe2) MACHINE_ID=jet ;; ### jet02
Expand Down
5 changes: 0 additions & 5 deletions tests/parm/c96_HAFS_v0_hwrf.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = 1
fhmax = 384
fhout = 3
fhmaxhf = 120
fhouthf = 1
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/control.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/control_ca.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/control_csawmg.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/control_flake.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/control_gdas.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'

/
Expand Down
1 change: 0 additions & 1 deletion tests/parm/control_noahmp.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/control_rrtmgp.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/control_thompson.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/control_ugwpv1.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/cpt.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/csawmg3shoc127.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/csawmgshoc.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
5 changes: 0 additions & 5 deletions tests/parm/esg_HAFS_v0_hwrf.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
blocksize = 10
chksum_debug = .false.
dycore_only = .false.
fdiag = 1
fhmax = 384
fhout = 3
fhmaxhf = 120
fhouthf = 1
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/gsd.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/gsd_rrtmgp.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/gsd_sar.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 550
chksum_debug = .false.
dycore_only = .false.
fdiag = 1
ccpp_suite = 'FV3_GSD_SAR'
/

Expand Down
5 changes: 0 additions & 5 deletions tests/parm/input.benchmark_v16.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
fhmax = @[FHMAX]
fhout = @[NFHOUT]
fhmaxhf = @[NFHMAX_HF]
fhouthf = @[NFHOUT_HF]
ccpp_suite = '@[CCPP_SUITE]'

/
Expand Down
5 changes: 0 additions & 5 deletions tests/parm/input.benchmark_v16_p7b.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
fhmax = @[FHMAX]
fhout = @[NFHOUT]
fhmaxhf = @[NFHMAX_HF]
fhouthf = @[NFHOUT_HF]
ccpp_suite = '@[CCPP_SUITE]'

/
Expand Down
5 changes: 0 additions & 5 deletions tests/parm/input.mom6_ccpp.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
fhmax = @[FHMAX]
fhout = @[NFHOUT]
fhmaxhf = @[NFHMAX_HF]
fhouthf = @[NFHOUT_HF]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/input_nest02.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 24
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
5 changes: 1 addition & 4 deletions tests/parm/model_configure.IN
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,5 @@ nbits: @[NBITS]
imo: @[IMO]
jmo: @[JMO]

nfhout: @[NFHOUT]
nfhmax_hf: @[NFHMAX_HF]
nfhout_hf: @[NFHOUT_HF]
nsout: -1
output_fh: @[OUTPUT_FH]
iau_offset: @[IAU_OFFSET]
37 changes: 37 additions & 0 deletions tests/parm/model_configure_fhout.IN
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
total_member: @[ENS_NUM]
print_esmf: .true.
PE_MEMBER01: @[TASKS]
start_year: @[SYEAR]
start_month: @[SMONTH]
start_day: @[SDAY]
start_hour: @[SHOUR]
start_minute: 0
start_second: 0
nhours_fcst: @[FHMAX]

dt_atmos: @[DT_ATMOS]
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]
write_tasks_per_group: @[WRTTASK_PER_GROUP]
output_history: @[OUTPUT_HISTORY]
write_dopost: @[WRITE_DOPOST]
num_files: @[NUM_FILES]
filename_base: @[FILENAME_BASE]
output_grid: @[OUTPUT_GRID]
output_file: @[OUTPUT_FILE]
ideflate: @[IDEFLATE]
nbits: @[NBITS]
imo: @[IMO]
jmo: @[JMO]

nfhout: @[NFHOUT]
nfhmax_hf: @[NFHMAX_HF]
nfhout_hf: @[NFHOUT_HF]
nsout: -1
iau_offset: @[IAU_OFFSET]
1 change: 1 addition & 0 deletions tests/parm/model_configure_regional.IN
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ kchunk3d: -1
nfhout: 3
nfhmax_hf: 12
nfhout_hf: 1
output_fh: @[OUTPUT_FH]
nsout: -1
1 change: 0 additions & 1 deletion tests/parm/multi_gases.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/regional.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/regional_c768.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = 1
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/regional_rrtmgp.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/stretched-input.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 32
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 0 additions & 1 deletion tests/parm/stretched-nest-input.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
blocksize = 24
chksum_debug = .false.
dycore_only = .false.
fdiag = @[FDIAG]
ccpp_suite = '@[CCPP_SUITE]'
/

Expand Down
1 change: 1 addition & 0 deletions tests/rt.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN | control
RUN | control_decomp | | |
RUN | control_2threads | - wcoss_cray | |
RUN | control_restart | | | control
RUN | control_fhzero | | |
RUN | control_CubedSphereGrid | | fv3 |
RUN | control_wrtGauss_netcdf_parallel | | fv3 |
RUN | control_c192 | | fv3 |
Expand Down
11 changes: 8 additions & 3 deletions tests/rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ elif [[ $MACHINE_ID = wcoss2 ]]; then
#ECFLOW_START=${ECF_ROOT}/intel/bin/ecflow_start.sh
#ECF_PORT=$(grep $USER /usrx/local/sys/ecflow/assigned_ports.txt | awk '{print $2}')

DISKNM=/lfs/h1/emc/ptmp/Dusan.Jovic/RT
DISKNM=/lfs/h1/emc/ptmp/${USER}/RT
QUEUE=workq
COMPILE_QUEUE=workq
PARTITION=
Expand Down Expand Up @@ -235,8 +235,13 @@ elif [[ $MACHINE_ID = hera.* ]]; then
PYTHONHOME=/scratch1/NCEPDEV/nems/emc.nemspara/soft/miniconda3_new_20210629
export PATH=$PYTHONHOME/bin:$PATH
export PYTHONPATH=$PYTHONHOME/lib/python3.7/site-packages
ECFLOW_START=$PYTHONHOME/bin/ecflow_start.sh
ECF_PORT=$(( $(id -u) + 1500 ))

if [[ ! $HOSTNAME = hecflow* ]]; then
echo "ERROR: On Hera we must be logged into 'hecflow' login nodes"
exit 1
fi
module load ecflow
ECFLOW_START=ecflow_start.sh

QUEUE=debug
COMPILE_QUEUE=batch
Expand Down
2 changes: 1 addition & 1 deletion tests/rt_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ ecflow_run() {
not_running=$?
if [[ $not_running -eq 1 ]]; then
echo "ecflow_server is NOT running on ${ECF_HOST}:${ECF_PORT}"
sh ${ECFLOW_START} -p ${ECF_PORT}
${ECFLOW_START} -p ${ECF_PORT}
else
echo "ecflow_server is already running on ${ECF_HOST}:${ECF_PORT}"
fi
Expand Down
Loading

0 comments on commit 74a34d2

Please sign in to comment.