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

update cmeps, fix debug compile, rename nems.configure files for coupled model #254

Merged
merged 13 commits into from
Nov 9, 2020
2 changes: 1 addition & 1 deletion CMEPS-interface/CMEPS
3 changes: 2 additions & 1 deletion CMEPS-interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ list(APPEND _mediator_files
CMEPS/mediator/med_utils_mod.F90
CMEPS/mediator/med_fraction_mod.F90
CMEPS/mediator/med_phases_aofluxes_mod.F90
CMEPS/mediator/med_io_mod.F90)
CMEPS/mediator/med_io_mod.F90
CMEPS/mediator/med_diag_mod.F90)

list(APPEND _mediator_defs ESMF_VERSION_MAJOR=${ESMF_VERSION_MAJOR}
ESMF_VERSION_MINOR=${ESMF_VERSION_MINOR}
Expand Down
321 changes: 161 additions & 160 deletions tests/RegressionTests_hera.intel.log

Large diffs are not rendered by default.

298 changes: 149 additions & 149 deletions tests/RegressionTests_orion.intel.log

Large diffs are not rendered by default.

198 changes: 99 additions & 99 deletions tests/RegressionTests_wcoss_cray.log

Large diffs are not rendered by default.

266 changes: 133 additions & 133 deletions tests/RegressionTests_wcoss_dell_p3.log

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion tests/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ if [[ $MACHINE_ID == macosx.* ]] || [[ $MACHINE_ID == linux.* ]]; then
source $PATHTR/modulefiles/${MACHINE_ID}/fv3
else
module use $PATHTR/modulefiles/${MACHINE_ID}
module load fv3
modulefile="fv3"
if [[ "${MAKE_OPT}" == *"DEBUG=Y"* ]]; then
[[ -f $PATHTR/modulefiles/${MACHINE_ID}/fv3_debug ]] && modulefile="fv3_debug"
fi
module load $modulefile
module list
fi
set -x
Expand Down
6 changes: 3 additions & 3 deletions tests/default_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export CPL_SLOW=${DT_THERM_MOM6}
export CPL_FAST=${DT_ATMOS}

# nems.configure defaults
export NEMS_CONFIGURE="nems.configure.medcmeps_atm_ocn_ice.IN"
export NEMS_CONFIGURE="nems.configure.cpld.IN"
export med_model="nems"
export atm_model="fv3"
export ocn_model="mom6"
Expand Down Expand Up @@ -428,9 +428,9 @@ export MOM6_RESTART_SETTING='n'
export MOM6_RIVER_RUNOFF='False'
export FRUNOFF=""
export CHLCLIM="seawifs_1998-2006_smoothed_2X.nc"
# this must be set False for restart repro
# this must be set False for restart repro
export MOM6_REPRO_LA='False'
# since CPL_SLOW is set to DT_THERM, this should be always be false
# since CPL_SLOW is set to DT_THERM, this should be always be false
export MOM6_THERMO_SPAN='False'
# no WW3
export MOM6_USE_WAVES='False'
Expand Down
4 changes: 2 additions & 2 deletions tests/edit_inputs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ function edit_mom_input {
-e "s/MOM6_USE_WAVES/$MOM6_USE_WAVES/g" \
-e "s/NX_GLB/$NX_GLB/g" \
-e "s/NY_GLB/$NY_GLB/g" \
-e "s/CHLCLIM/$CHLCLIM/g"
-e "s/CHLCLIM/$CHLCLIM/g"
}

function edit_data_table {
sed -e "s/FRUNOFF/$FRUNOFF/g"
sed -e "s/FRUNOFF/$FRUNOFF/g"
}

function edit_diag_table {
Expand Down
3 changes: 1 addition & 2 deletions tests/fv3_conf/cpld_bmark_run.IN
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mkdir INPUT RESTART history MOM6_OUTPUT
mkdir INPUT RESTART history MOM6_OUTPUT

if [[ $ATMRES == 'C96' ]]; then
FV3_DIR=FV3_input_data
Expand Down Expand Up @@ -58,4 +58,3 @@ cp @[RTPWD]/${FV3_IC}/gfs_data*.nc ./INPUT
cp @[RTPWD]/${MOM6_IC}/MOM*.nc ./INPUT
# the BM ICs are still named cice5 and need to remain so until P5.0 is completed
cp @[RTPWD]/${CICE_IC}/cice5_model_@[ICERES].*.nc ./cice_model.res.nc

2 changes: 1 addition & 1 deletion tests/fv3_conf/cpld_control_run.IN
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mkdir INPUT RESTART history MOM6_OUTPUT
mkdir INPUT RESTART history MOM6_OUTPUT

if [[ $ATMRES == 'C96' ]]; then
FV3_DIR=FV3_input_data
Expand Down
4 changes: 2 additions & 2 deletions tests/rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,9 @@ if [[ $SINGLE_NAME != '' ]]; then
fi

if [[ $MACHINE_ID = hera.* ]] || [[ $MACHINE_ID = orion.* ]] || [[ $MACHINE_ID = cheyenne.* ]] || [[ $MACHINE_ID = jet.* ]]; then
RTPWD=${RTPWD:-$DISKNM/NEMSfv3gfs/develop-20201103/${RT_COMPILER^^}}
RTPWD=${RTPWD:-$DISKNM/NEMSfv3gfs/develop-20201106/${RT_COMPILER^^}}
else
RTPWD=${RTPWD:-$DISKNM/NEMSfv3gfs/develop-20201103}
RTPWD=${RTPWD:-$DISKNM/NEMSfv3gfs/develop-20201106}
fi

shift $((OPTIND-1))
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/cpld_bmark
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export LIST_FILES="phyf024.tile1.nc \
RESTART/MOM.res_1.nc \
RESTART/MOM.res_2.nc \
RESTART/MOM.res_3.nc \
RESTART/iced.2013-04-02-00000.nc"
RESTART/iced.2013-04-02-00000.nc"
#RESTART/ufs.cpld.cpl.r.2013-04-02-00000.nc"

export_fv3
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/cpld_bmark_wave
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export CPL_SLOW=${DT_THERM_MOM6}
export CPL_FAST=${DT_ATMOS}

# nems.configure
export NEMS_CONFIGURE="nems.configure.medcmeps_atm_ocn_ice_wav.IN"
export NEMS_CONFIGURE="nems.configure.cpld_wave.IN"
export coupling_interval_slow_sec=${CPL_SLOW}
export coupling_interval_fast_sec=${CPL_FAST}

Expand Down
2 changes: 1 addition & 1 deletion tests/tests/cpld_bmark_wave_35d
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export CPL_SLOW=${DT_THERM_MOM6}
export CPL_FAST=${DT_ATMOS}

# nems.configure
export NEMS_CONFIGURE="nems.configure.medcmeps_atm_ocn_ice_wav.IN"
export NEMS_CONFIGURE="nems.configure.cpld_wave.IN"
export coupling_interval_slow_sec=${CPL_SLOW}
export coupling_interval_fast_sec=${CPL_FAST}

Expand Down