-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add run_jedi_exe ctests, add example letkf yaml for orion (#223)
- Loading branch information
1 parent
e14a078
commit 4a42609
Showing
8 changed files
with
330 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
bindir=$1 | ||
srcdir=$2 | ||
|
||
if [[ -d /scratch1 ]] ; then | ||
machine="hera" | ||
elif [[ -d /work ]] ; then | ||
machine="orion" | ||
else | ||
echo "UNSUPPORTED MACHINE. ABORT" | ||
exit 99 | ||
fi | ||
|
||
mkdir -p ${bindir}/test/testoutput/gdas_single_test_hofx3d | ||
cd ${bindir}/test/testoutput/gdas_single_test_hofx3d | ||
|
||
cat > ./3dhofx_example.yaml << EOF | ||
working directory: ./ | ||
GDASApp home: ${srcdir} | ||
GDASApp mode: hofx | ||
template: ${srcdir}/parm/atm/hofx/hofx_nomodel.yaml | ||
config: | ||
obs_yaml_dir: ${srcdir}/parm/atm/obs/config | ||
executable: ${bindir}/bin/fv3jedi_hofx_nomodel.x | ||
obs_list: ${srcdir}/parm/atm/obs/lists/gdas_prototype_3d.yaml | ||
gdas_fix_root: /scratch1/NCEPDEV/da/Cory.R.Martin/GDASApp/fix | ||
atm: true | ||
layout_x: 1 | ||
layout_y: 1 | ||
atm_window_length: PT6H | ||
valid_time: 2021-08-01T00:00:00Z | ||
dump: gdas | ||
case: C768 | ||
levs: 128 | ||
interp_method: barycentric | ||
job options: | ||
machine: ${machine} | ||
account: da-cpu | ||
queue: debug | ||
partition: hera | ||
walltime: '30:00' | ||
ntasks: 6 | ||
ntasks-per-node: 2 | ||
modulepath: ${srcdir}/modulefiles | ||
EOF | ||
|
||
rm stdout.txt | ||
${srcdir}/ush/run_jedi_exe.py -c ./3dhofx_example.yaml > stdout.txt | ||
rc=$? | ||
if [ $rc -ne 0 ]; then | ||
exit $rc | ||
fi | ||
|
||
jobid=$(grep "Submitted" stdout.txt | awk -F' ' '{print $4}') | ||
echo "jobid is $jobid" | ||
|
||
nloop=100 | ||
n=1 | ||
while [ $n -le $nloop ]; do | ||
if [ -s GDASApp.o$jobid ]; then | ||
break | ||
fi | ||
sleep 10 | ||
n=$((n+1)) | ||
done | ||
|
||
rc=1 | ||
n=1 | ||
while [ $n -le $nloop ]; do | ||
count=$(cat GDASApp.o$jobid | grep "OOPS_STATS Run end" | wc -l) | ||
echo "n = $n count = $count" | ||
if [ $count -gt 0 ]; then | ||
rc=0 | ||
break | ||
fi | ||
sleep 10 | ||
n=$((n+1)) | ||
done | ||
|
||
exit $rc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
bindir=$1 | ||
srcdir=$2 | ||
|
||
if [[ -d /scratch1 ]] ; then | ||
machine="hera" | ||
elif [[ -d /work ]] ; then | ||
machine="orion" | ||
else | ||
echo "UNSUPPORTED MACHINE. ABORT" | ||
exit 99 | ||
fi | ||
|
||
mkdir -p ${bindir}/test/testoutput/gdas_single_test_3dvar | ||
cd ${bindir}/test/testoutput/gdas_single_test_3dvar | ||
|
||
cat > ./3dvar_example.yaml << EOF | ||
working directory: ./ | ||
GDASApp home: ${srcdir} | ||
GDASApp mode: variational | ||
template: ${srcdir}/parm/atm/variational/3dvar_dripcg.yaml | ||
config: | ||
berror_yaml: ${srcdir}/parm/atm/berror/staticb_gsibec.yaml | ||
obs_dir: obs | ||
diag_dir: diags | ||
crtm_coeff_dir: crtm | ||
bias_in_dir: obs | ||
bias_out_dir: bc | ||
obs_yaml_dir: ${srcdir}/parm/atm/obs/config | ||
executable: ${bindir}/bin/fv3jedi_var.x | ||
obs_list: ${srcdir}/parm/atm/obs/lists/gdas_prototype_3d.yaml | ||
gdas_fix_root: /scratch1/NCEPDEV/da/Cory.R.Martin/GDASApp/fix | ||
atm: true | ||
layout_x: 1 | ||
layout_y: 1 | ||
atm_window_length: PT6H | ||
valid_time: 2021-12-21T06:00:00Z | ||
dump: gdas | ||
case: C96 | ||
case_anl: C96 | ||
staticb_type: gsibec | ||
dohybvar: false | ||
levs: 128 | ||
nmem: 10 | ||
interp_method: barycentric | ||
job options: | ||
machine: ${machine} | ||
account: da-cpu | ||
queue: debug | ||
partition: hera | ||
walltime: '30:00' | ||
ntasks: 6 | ||
modulepath: ${srcdir}/modulefiles | ||
EOF | ||
|
||
rm stdout.txt | ||
${srcdir}/ush/run_jedi_exe.py -c ./3dvar_example.yaml > stdout.txt | ||
rc=$? | ||
if [ $rc -ne 0 ]; then | ||
exit $rc | ||
fi | ||
|
||
jobid=$(grep "Submitted" stdout.txt | awk -F' ' '{print $4}') | ||
echo "jobid is $jobid" | ||
|
||
nloop=100 | ||
n=1 | ||
while [ $n -le $nloop ]; do | ||
if [ -s GDASApp.o$jobid ]; then | ||
break | ||
fi | ||
sleep 10 | ||
n=$((n+1)) | ||
done | ||
|
||
rc=1 | ||
n=1 | ||
while [ $n -le $nloop ]; do | ||
count=$(cat GDASApp.o$jobid | grep "OOPS_STATS Run end" | wc -l) | ||
echo "n = $n count = $count" | ||
if [ $count -gt 0 ]; then | ||
rc=0 | ||
break | ||
fi | ||
sleep 10 | ||
n=$((n+1)) | ||
done | ||
|
||
exit $rc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
bindir=$1 | ||
srcdir=$2 | ||
|
||
if [[ -d /scratch1 ]] ; then | ||
machine="hera" | ||
elif [[ -d /work ]] ; then | ||
machine="orion" | ||
else | ||
echo "UNSUPPORTED MACHINE. ABORT" | ||
exit 99 | ||
fi | ||
|
||
if [ "$machine" = "hera" ] ; then | ||
cominges="/scratch1/NCEPDEV/da/Russ.Treadon/GDASApp/cases" | ||
elif [ "$machine" = "orion" ]; then | ||
cominges="/work2/noaa/da/rtreadon/GDASApp/cases" | ||
fi | ||
|
||
mkdir -p ${bindir}/test/testoutput/gdas_single_test_letkf | ||
cd ${bindir}/test/testoutput/gdas_single_test_letkf | ||
|
||
cat > ./letkf_example.yaml << EOF | ||
working directory: ./ | ||
GDASApp home: ${srcdir} | ||
GDASApp mode: letkf | ||
template: ${srcdir}/parm/atm/lgetkf/lgetkf.yaml | ||
config: | ||
obs_dir: obs | ||
diag_dir: diags | ||
crtm_coeff_dir: crtm | ||
bias_in_dir: obs | ||
bias_out_dir: bc | ||
obs_yaml_dir: ${srcdir}/parm/atm/obs/config | ||
executable: ${bindir}/bin/fv3jedi_letkf.x | ||
obs_list: ${srcdir}/parm/atm/obs/lists/lgetkf_prototype.yaml | ||
gdas_fix_root: /scratch1/NCEPDEV/da/Cory.R.Martin/GDASApp/fix | ||
atm: true | ||
layout_x: 1 | ||
layout_y: 1 | ||
atm_window_length: PT6H | ||
valid_time: 2021-12-21T06:00:00Z | ||
dump: gdas | ||
case: C48 | ||
case_anl: C48 | ||
staticb_type: gsibec | ||
dohybvar: no | ||
levs: 128 | ||
nmem: 5 | ||
comin_ges: ${cominges} | ||
interp_method: barycentric | ||
job options: | ||
machine: ${machine} | ||
account: da-cpu | ||
queue: debug | ||
partition: hera | ||
walltime: '30:00' | ||
ntasks: 6 | ||
modulepath: ${srcdir}/modulefiles | ||
EOF | ||
|
||
rm stdout.txt | ||
${srcdir}/ush/run_jedi_exe.py -c ./letkf_example.yaml > stdout.txt | ||
rc=$? | ||
if [ $rc -ne 0 ]; then | ||
exit $rc | ||
fi | ||
|
||
jobid=$(grep "Submitted" stdout.txt | awk -F' ' '{print $4}') | ||
echo "jobid is $jobid" | ||
|
||
nloop=100 | ||
n=1 | ||
while [ $n -le $nloop ]; do | ||
if [ -s GDASApp.o$jobid ]; then | ||
break | ||
fi | ||
sleep 10 | ||
n=$((n+1)) | ||
done | ||
|
||
rc=1 | ||
n=1 | ||
while [ $n -le $nloop ]; do | ||
count=$(cat GDASApp.o$jobid | grep "OOPS_STATS Run end" | wc -l) | ||
echo "n = $n count = $count" | ||
if [ $count -gt 0 ]; then | ||
rc=0 | ||
break | ||
fi | ||
sleep 10 | ||
n=$((n+1)) | ||
done | ||
|
||
exit $rc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
working directory: /work2/noaa/stmp/cmartin/gdas_single_test_letkf | ||
GDASApp home: /work2/noaa/da/cmartin/GDASApp/work/GDASApp | ||
GDASApp mode: letkf | ||
template: /work2/noaa/da/cmartin/GDASApp/work/GDASApp/parm/atm/lgetkf/lgetkf.yaml | ||
config: | ||
obs_dir: obs | ||
diag_dir: diags | ||
crtm_coeff_dir: crtm | ||
bias_in_dir: obs | ||
bias_out_dir: bc | ||
obs_yaml_dir: /work2/noaa/da/cmartin/GDASApp/work/GDASApp/parm/atm/obs/config | ||
executable: /work2/noaa/da/cmartin/GDASApp/work/GDASApp/build/bin/fv3jedi_letkf.x | ||
obs_list: /work2/noaa/da/cmartin/GDASApp/work/GDASApp/parm/atm/obs/lists/lgetkf_prototype.yaml | ||
gdas_fix_root: /work2/noaa/da/cmartin/GDASApp/fix | ||
atm: true | ||
layout_x: 1 | ||
layout_y: 1 | ||
atm_window_length: PT6H | ||
valid_time: 2021-12-21T06:00:00Z | ||
dump: gdas | ||
case: C48 | ||
case_anl: C48 | ||
case_enkf: C48 | ||
staticb_type: gsibec | ||
dohybvar: no | ||
levs: 128 | ||
nmem: 10 | ||
comin_ges: /work2/noaa/da/rtreadon/GDASApp/cases | ||
interp_method: barycentric | ||
job options: | ||
machine: hera | ||
account: da-cpu | ||
queue: debug | ||
partition: hera | ||
walltime: '30:00' | ||
ntasks: 6 | ||
modulepath: /work2/noaa/da/cmartin/GDASApp/work/GDASApp/modulefiles |