Skip to content

Commit

Permalink
enable atmospheric lgetkf ctests to run in combined and split modes (N…
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA committed Aug 23, 2024
1 parent c848bf0 commit 80a0297
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/atm/global-workflow/jjob_ens_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ for imem in $(seq 1 $NMEM_ENS); do
done
done

# Set lobsdiag_forenkf=.false. to run letkf as single observer and solver job
# NOTE: atmensanlinit creates input yaml for atmensanlletkf job
cp $EXPDIR/config.base_lobsdiag_forenkf_false $EXPDIR/config.base

# Execute j-job
if [[ $machine = 'HERA' || $machine = 'ORION' || $machine = 'HERCULES' ]]; then
sbatch --ntasks=1 --account=$ACCOUNT --qos=batch --time=00:10:00 --export=ALL --wait --output=atmensanlinit-%j.out ${HOMEgfs}/jobs/JGLOBAL_ATMENS_ANALYSIS_INITIALIZE
Expand Down
3 changes: 3 additions & 0 deletions test/atm/global-workflow/jjob_ens_obs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ elif [[ $machine = 'ORION' || $machine = 'HERCULES' ]]; then
export UTILROOT=/work2/noaa/da/python/opt/intel-2022.1.2/prod_util/1.2.2
fi

# Set lobsdiag_forenkf=.true. to run letkf as separate observer and solver jobs
cp $EXPDIR/config.base_lobsdiag_forenkf_true $EXPDIR/config.base

# Execute j-job
if [[ $machine = 'HERA' || $machine = 'ORION' || $machine = 'HERCULES' ]]; then
sbatch --nodes=1 --ntasks=36 --account=$ACCOUNT --qos=debug --time=00:30:00 --export=ALL --wait --output=atmensanlobs-%j.out ${HOMEgfs}/jobs/JGLOBAL_ATMENS_ANALYSIS_OBS
Expand Down
5 changes: 5 additions & 0 deletions test/atm/global-workflow/setup_workflow_exp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,9 @@ echo " "
echo "$expdir/../config.yaml is"
cat $expdir/../config.yaml

# config.base contains with lobsdiag_forenkf=.true. Create config.base with lobsdiag_forenkf=.false. for jjob_ens_letkf.sh
EXPDIR=$expdir/$pslot
cp $EXPDIR/config.base $EXPDIR/config.base_lobsdiag_forenkf_true
sed 's/export lobsdiag_forenkf=".true."/export lobsdiag_forenkf=".false."/' $EXPDIR/config.base > $EXPDIR/config.base_lobsdiag_forenkf_false

exit $?

0 comments on commit 80a0297

Please sign in to comment.