Skip to content

Commit 3e53e06

Browse files
Fix some bugs and make other changes so ctest in GDASApp works (#1172)
Fix some bugs and make other changes so ctest in GDASApp works. `$CDATE` is used instead of `$cyc` for the time being, since `cyc` isn't defined before that point in the scripts. Fix some lines where multiple arguments were enclosed in quotation marks when they should be separate. Update `config.ocnanal` to template out some variables and add them to the defaults yaml. Fixes #1164 Fixes #1173 Companion PR to [GDASApp/PR234](NOAA-EMC/GDASApp#234) See also [GDASApp/232](NOAA-EMC/GDASApp#232)
1 parent 5a748ee commit 3e53e06

File tree

9 files changed

+23
-15
lines changed

9 files changed

+23
-15
lines changed

env/ORION.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ elif [ ${step} = "ocnanalrun" ]; then
9191

9292
export NTHREADS_OCNANAL=${nth_ocnanalrun:-${nth_max}}
9393
[[ $NTHREADS_OCNANAL -gt ${nth_max} ]] && export NTHREADS_OCNANAL=${nth_max}
94-
export APRUN_OCNANAL="${launcher} -n ${npe_aeroanlrun}"
94+
export APRUN_OCNANAL="${launcher} -n ${npe_ocnanalrun}"
9595

9696
elif [[ "${step}" = "anal" ]] || [[ "${step}" = "analcalc" ]]; then
9797

jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_POST

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source "${HOMEgfs}/ush/preamble.sh"
55
##############################################
66
# make temp directory
77
##############################################
8-
export DATA=${DATA:-${DATAROOT}/ocnanal_${cyc}}
8+
export DATA=${DATA:-${DATAROOT}/ocnanal_${CDATE}} # TODO (G): Switch to {cyc} when the downstream code is ready
99
mkdir -p "${DATA}"
1010
cd "${DATA}" || (echo "${DATA} does not exist. ABORT!"; exit 1)
1111

jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_PREP

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source "${HOMEgfs}/ush/preamble.sh"
55
##############################################
66
# make temp directory
77
##############################################
8-
export DATA=${DATA:-${DATAROOT}/ocnanal_${cyc}}
8+
export DATA=${DATA:-${DATAROOT}/ocnanal_${CDATE}} # TODO (G): Switch to {cyc} when the downstream code is ready
99
rm -rf "${DATA}" # Ensure starting with a clean DATA
1010
mkdir -p "${DATA}"
1111
cd "${DATA}" || (echo "${DATA} does not exist. ABORT!"; exit 1)
@@ -42,7 +42,7 @@ done
4242
##########################################
4343
# Source machine runtime environment
4444
##########################################
45-
. "${HOMEgfs}/env/${machine}.env ocnanalprep"
45+
. "${HOMEgfs}/env/${machine}.env" ocnanalprep
4646
status=$?
4747
[[ ${status} -ne 0 ]] && exit "${status}"
4848

jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_RUN

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ source "${HOMEgfs}/ush/preamble.sh"
66
##############################################
77
# make temp directory
88
##############################################
9-
export DATA=${DATA:-${DATAROOT}/ocnanal_${cyc}}
9+
export DATA=${DATA:-${DATAROOT}/ocnanal_${CDATE}} # TODO (G): Switch to {cyc} when the downstream code is ready
1010
mkdir -p "${DATA}"
1111
cd "${DATA}" || (echo "${DATA} does not exist. ABORT!"; exit 1)
1212

@@ -42,7 +42,7 @@ done
4242
##########################################
4343
# Source machine runtime environment
4444
##########################################
45-
. "${HOMEgfs}/env/${machine}.env ocnanalrun"
45+
. "${HOMEgfs}/env/${machine}.env" ocnanalrun
4646
status=$?
4747
[[ ${status} -ne 0 ]] && exit "${status}"
4848

parm/config/config.ocnanal

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ export OBS_YAML_DIR=${HOMEgfs}/sorc/gdas.cd/parm/soca/obs/config
99
export OBS_YAML=${HOMEgfs}/sorc/gdas.cd/parm/soca/obs/obs_list.yaml
1010
export OBS_LIST=${OBS_YAML_DIR}/obs_list.yaml
1111
export FV3JEDI_STAGE_YAML=${HOMEgfs}/sorc/gdas.cd/test/soca/testinput/dumy.yaml
12-
export SOCA_INPUT_FIX_DIR=/scratch2/NCEPDEV/ocean/Guillaume.Vernieres/data/static/72x35x25/soca # TODO: Should be moved somewhere else
12+
export SOCA_INPUT_FIX_DIR=@SOCA_INPUT_FIX_DIR@
1313
export SOCA_VARS=tocn,socn,ssh
14-
export SOCA_NINNER=50
15-
export CASE_ANL="C48"
14+
export SOCA_NINNER=@SOCA_NINNER@
15+
export CASE_ANL=@CASE_ANL@
1616
export DOMAIN_STACK_SIZE=2000000
1717
export JEDI_BIN=${HOMEgfs}/sorc/gdas.cd/build/bin
1818

1919
# TODO: Move the R2D2 configuration to a common space
2020
export R2D2_OBS_DB=shared
21-
export R2D2_OBS_DUMP=s2s_v1
22-
export R2D2_OBS_SRC=gdas_marine
21+
export R2D2_OBS_DUMP=@R2D2_OBS_DUMP@
22+
export R2D2_OBS_SRC=@R2D2_OBS_SRC@
2323
export R2D2_OBS_WINDOW=24 # TODO: Check if the R2D2 sampling DB window is still needed
24-
export COMIN_OBS=/scratch2/NCEPDEV/marineda/r2d2
24+
export COMIN_OBS=@COMIN_OBS@
2525
echo "END: config.ocnanal"

parm/config/config.ocnanalpost

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
echo "BEGIN: config.ocnanalpost"
77

88
# Get task specific resources
9-
. "${EXPDIR}/config.resources ocnanalpost"
9+
. "${EXPDIR}/config.resources" ocnanalpost
1010
echo "END: config.ocnanalpost"

parm/config/config.ocnanalprep

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
echo "BEGIN: config.ocnanalprep"
77

88
# Get task specific resources
9-
. "${EXPDIR}/config.resources ocnanalprep"
9+
. "${EXPDIR}/config.resources" ocnanalprep
1010
echo "END: config.ocnanalprep"

parm/config/config.ocnanalrun

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
echo "BEGIN: config.ocnanalrun"
77

88
# Get task specific resources
9-
. "${EXPDIR}/config.resources ocnanalrun"
9+
. "${EXPDIR}/config.resources" ocnanalrun
1010

1111
echo "END: config.ocnanalrun"

parm/config/yaml/defaults.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
aeroanl:
22
IO_LAYOUT_X: 1
33
IO_LAYOUT_Y: 1
4+
5+
ocnanal:
6+
SOCA_INPUT_FIX_DIR: '/scratch2/NCEPDEV/ocean/Guillaume.Vernieres/data/static/72x35x25'
7+
CASE_ANL: 'C48'
8+
COMIN_OBS: '/scratch2/NCEPDEV/marineda/r2d2'
9+
SOCA_NINNER: 50
10+
R2D2_OBS_SRC: 'gdas_marine'
11+
R2D2_OBS_DUMP: 's2s_v1'

0 commit comments

Comments
 (0)