Skip to content

Commit b9379ba

Browse files
update comrot to be consistent with g-w develop (#811)
1 parent 54ff2af commit b9379ba

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

test/aero/global-workflow/setup_workflow_exp.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ resensatmos='48'
1515
nens=0
1616
pslot='gdas_test'
1717
configdir=$srcdir/../../parm/config/gfs
18-
comrot=$bindir/test/aero/global-workflow/testrun/ROTDIRS
18+
comroot=$bindir/test/aero/global-workflow/testrun/ROTDIRS
1919
expdir=$bindir/test/aero/global-workflow/testrun/experiments
2020

2121
# clean previous experiment
22-
rm -rf $comrot $expdir config
22+
rm -rf $comroot $expdir config
2323

2424
# copy config.yaml to local config
2525
cp -r $configdir config
@@ -46,7 +46,7 @@ $srcdir/../../workflow/setup_expt.py gfs cycled --idate $idate \
4646
--nens $nens \
4747
--pslot $pslot \
4848
--configdir $expdir/../config \
49-
--comrot $comrot \
49+
--comroot $comroot \
5050
--expdir $expdir \
5151
--yaml $expdir/../config.yaml
5252

test/atm/global-workflow/setup_workflow_exp.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ resensatmos='48'
1616
nens=3
1717
pslot='gdas_test'
1818
configdir=$srcdir/../../parm/config/gfs
19-
comrot=$bindir/test/atm/global-workflow/testrun/ROTDIRS
19+
comroot=$bindir/test/atm/global-workflow/testrun/ROTDIRS
2020
expdir=$bindir/test/atm/global-workflow/testrun/experiments
2121

2222
# clean previous experiment
23-
rm -rf $comrot $expdir config
23+
rm -rf $comroot $expdir config
2424

2525
# copy config.yaml to local config
2626
cp -r $configdir config
@@ -45,7 +45,7 @@ $srcdir/../../workflow/setup_expt.py gfs cycled --idate $idate \
4545
--nens $nens \
4646
--pslot $pslot \
4747
--configdir $expdir/../config \
48-
--comrot $comrot \
48+
--comroot $comroot \
4949
--expdir $expdir \
5050
--yaml $expdir/../config.yaml
5151

test/setup_workflow_exp.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ resensatmos='48'
1414
nens=0
1515
pslot='gdas_test'
1616
configdir=$srcdir/../../parm/config/gfs
17-
comrot=$bindir/test/testrun/ROTDIRS
17+
comroot=$bindir/test/testrun/ROTDIRS
1818
expdir=$bindir/test/testrun/experiments
1919

2020
# clean previous experiment
21-
rm -rf "${comrot}" "${expdir}"
21+
rm -rf "${comroot}" "${expdir}"
2222

2323
# run the script
2424
cd $srcdir/../../workflow
2525

2626
echo "Running global-workflow experiment generation script"
27-
./setup_expt.py gfs cycled --idate $idate --edate $edate --app $app --start $starttype --gfs_cyc $gfscyc --resdetatmos $resdetatmos --resensatmos $resensatmos --nens $nens --pslot $pslot --configdir $configdir --comrot $comrot --expdir $expdir
27+
./setup_expt.py gfs cycled --idate $idate --edate $edate --app $app --start $starttype --gfs_cyc $gfscyc --resdetatmos $resdetatmos --resensatmos $resensatmos --nens $nens --pslot $pslot --configdir $configdir --comroot $comroot --expdir $expdir
2828

2929
exit $?

test/soca/gw/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# test for creating an experiment directory within the global-workflow
22
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/test/soca/gw/testrun)
33

4-
# Prepare COMROT and static dir
4+
# Prepare ROTDIR and static dir
55
add_test(NAME test_gdasapp_soca_prep
66
COMMAND ${PROJECT_SOURCE_DIR}/test/soca/gw/prep.sh ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}
77
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/soca/gw)

test/soca/gw/run_jjobs.yaml.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ setup_expt config:
5555
NICAS_GRID_SIZE: 150
5656
prepoceanobs:
5757
SOCA_OBS_LIST: @HOMEgfs@/sorc/gdas.cd/parm/soca/obs/obs_list.yaml
58-
OBSPROC_CONFIG: @HOMEgfs@/sorc/gdas.cd/parm/soca/obsproc/obsproc_config.yaml
58+
OBSPROC_YAML: @HOMEgfs@/sorc/gdas.cd/parm/soca/obsproc/obsproc_config.yaml
5959
DMPDIR: @HOMEgfs@/sorc/gdas.cd/build/gdas/test/soca/gw/obsproc
6060

6161
job options:

ush/soca/run_jjobs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def setupexpt(self):
130130
"nens": "0",
131131
"pslot": "${PSLOT}",
132132
"configdir": "${PWD}/config/gfs",
133-
"comrot": self.rotdir,
133+
"comroot": self.rotdir,
134134
"expdir": "${EXPDIRS}",
135135
"yaml": "overwrite_defaults.yaml"}
136136

@@ -164,7 +164,7 @@ def precom(self, com, tmpl):
164164
def copy_bkgs(self):
165165
"""
166166
Fill the ROTDIR with backgrounds
167-
TODO: replace by fill comrot?
167+
TODO: replace by fill comroot?
168168
"""
169169
print(f"gPDY: {self.gPDY}")
170170
print(f"gcyc: {self.gcyc}")
@@ -254,7 +254,7 @@ def execute(self, submit=False):
254254

255255

256256
def main():
257-
epilog = ["Make sure the comrot, experiment and config directories are removed before running this script",
257+
epilog = ["Make sure the comroot, experiment and config directories are removed before running this script",
258258
"Examples:",
259259
" ./run_jjobs.py -y run_jjobs_orion.yaml",
260260
" ./run_jjobs.py -h"]
@@ -272,7 +272,7 @@ def main():
272272
exp_config = yaml.safe_load(file)
273273

274274
if not args.skip:
275-
# Write a setup card (prepare COMROT, configs, ...)
275+
# Write a setup card (prepare COMROOT, configs, ...)
276276
setup_card = JobCard("setup_expt.sh", exp_config)
277277
setup_card.export_env_vars_script()
278278
setup_card.setupexpt()

0 commit comments

Comments
 (0)