Skip to content

Commit

Permalink
Merge branch 'develop' into feature/remove-obsolete-platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
aerorahul committed Jul 22, 2022
2 parents e044b4b + ffcd5bb commit dae8249
Show file tree
Hide file tree
Showing 27 changed files with 567 additions and 13 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ sorc/gldas.fd
sorc/gsi_enkf.fd
sorc/gsi.fd
sorc/enkf.fd
sorc/gdas.cd
sorc/gsi_utils.fd
sorc/gsi_monitor.fd
sorc/ufs_utils.fd
Expand Down Expand Up @@ -145,6 +146,12 @@ jobs/JGFS_ATMOS_WAFS_BLENDING_0P25
jobs/JGFS_ATMOS_WAFS_GCIP
jobs/JGFS_ATMOS_WAFS_GRIB2
jobs/JGFS_ATMOS_WAFS_GRIB2_0P25
jobs/JGDAS_GLOBAL_ATMOS_ANALYSIS_POST
jobs/JGDAS_GLOBAL_ATMOS_ANALYSIS_PREP
jobs/JGDAS_GLOBAL_ATMOS_ANALYSIS_RUN
jobs/JGDAS_GLOBAL_ATMOS_ENSANAL_POST
jobs/JGDAS_GLOBAL_ATMOS_ENSANAL_PREP
jobs/JGDAS_GLOBAL_ATMOS_ENSANAL_RUN
# scripts symlinks
scripts/exemcsfc_global_sfc_prep.sh
scripts/exgdas_atmos_gldas.sh
Expand Down Expand Up @@ -188,6 +195,7 @@ ush/radmon_verf_angle.sh
ush/radmon_verf_bcoef.sh
ush/radmon_verf_bcor.sh
ush/radmon_verf_time.sh
ush/ufsda
ush/wafs_blending.sh
ush/wafs_grib2.regrid.sh
ush/wafs_intdsk.sh
25 changes: 25 additions & 0 deletions env/HERA.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if [ $# -ne 1 ]; then

echo "Must specify an input argument to set runtime environment variables!"
echo "argument can be any one of the following:"
echo "atmanalrun atmensanalrun"
echo "anal sfcanl fcst post vrfy metp"
echo "eobs eupd ecen efcs epos"
echo "postsnd awips gempak"
Expand Down Expand Up @@ -50,6 +51,30 @@ elif [ $step = "waveinit" -o $step = "waveprep" -o $step = "wavepostsbs" -o $ste
export wavempexec=${launcher}
export wave_mpmd=${mpmd}

elif [ $step = "atmanalrun" ]; then

export CFP_MP=${CFP_MP:-"YES"}
export USE_CFP=${USE_CFP:-"YES"}
export APRUNCFP="$launcher -n \$ncmd --multi-prog"

nth_max=$(($npe_node_max / $npe_node_atmanalrun))

export NTHREADS_ATMANAL=${nth_atmanalrun:-$nth_max}
[[ $NTHREADS_ATMANAL -gt $nth_max ]] && export NTHREADS_ATMANAL=$nth_max
export APRUN_ATMANAL="$launcher -n $npe_atmanalrun"

elif [ $step = "atmensanalrun" ]; then

export CFP_MP=${CFP_MP:-"YES"}
export USE_CFP=${USE_CFP:-"YES"}
export APRUNCFP="$launcher -n \$ncmd --multi-prog"

nth_max=$(($npe_node_max / $npe_node_atmensanalrun))

export NTHREADS_ATMENSANAL=${nth_atmensanalrun:-$nth_max}
[[ $NTHREADS_ATMENSANAL -gt $nth_max ]] && export NTHREADS_ATMENSANAL=$nth_max
export APRUN_ATMENSANAL="$launcher -n $npe_atmensanalrun"

elif [ $step = "anal" ]; then

export MKL_NUM_THREADS=4
Expand Down
17 changes: 17 additions & 0 deletions env/JET.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if [ $# -ne 1 ]; then

echo "Must specify an input argument to set runtime environment variables!"
echo "argument can be any one of the following:"
echo "atmanalrun atmensanalrun"
echo "anal sfcanl fcst post vrfy metp"
echo "eobs eupd ecen efcs epos"
echo "postsnd awips gempak"
Expand Down Expand Up @@ -44,6 +45,22 @@ elif [ $step = "waveinit" -o $step = "waveprep" -o $step = "wavepostsbs" -o $ste
export wavempexec=${launcher}
export wave_mpmd=${mpmd}

elif [ $step = "atmanalrun" ]; then

nth_max=$(($npe_node_max / $npe_node_atmanalrun))

export NTHREADS_ATMANAL=${nth_atmanalrun:-$nth_max}
[[ $NTHREADS_ATMANAL -gt $nth_max ]] && export NTHREADS_ATMANAL=$nth_max
export APRUN_ATMANAL="$launcher $npe_atmanalrun"

elif [ $step = "atmensanalrun" ]; then

nth_max=$(($npe_node_max / $npe_node_atmensanalrun))

export NTHREADS_ATMENSANAL=${nth_atmensanalrun:-$nth_max}
[[ $NTHREADS_ATMENSANAL -gt $nth_max ]] && export NTHREADS_ATMENSANAL=$nth_max
export APRUN_ATMENSANAL="$launcher $npe_atmensanalrun"

elif [ $step = "anal" ]; then

nth_max=$(($npe_node_max / $npe_node_anal))
Expand Down
25 changes: 25 additions & 0 deletions env/ORION.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if [ $# -ne 1 ]; then

echo "Must specify an input argument to set runtime environment variables!"
echo "argument can be any one of the following:"
echo "atmanalrun atmensanalrun"
echo "anal sfcanl fcst post vrfy metp"
echo "eobs eupd ecen efcs epos"
echo "postsnd awips gempak"
Expand Down Expand Up @@ -49,6 +50,30 @@ elif [ $step = "waveinit" -o $step = "waveprep" -o $step = "wavepostsbs" -o $ste
export wavempexec=${launcher}
export wave_mpmd=${mpmd}

elif [ $step = "atmanalrun" ]; then

export CFP_MP=${CFP_MP:-"YES"}
export USE_CFP=${USE_CFP:-"YES"}
export APRUNCFP="$launcher -n \$ncmd --multi-prog"

nth_max=$(($npe_node_max / $npe_node_atmanalrun))

export NTHREADS_ATMANAL=${nth_atmanalrun:-$nth_max}
[[ $NTHREADS_ATMANAL -gt $nth_max ]] && export NTHREADS_ATMANAL=$nth_max
export APRUN_ATMANAL="$launcher -n $npe_atmanalrun"

elif [ $step = "atmensanalrun" ]; then

export CFP_MP=${CFP_MP:-"YES"}
export USE_CFP=${USE_CFP:-"YES"}
export APRUNCFP="$launcher -n \$ncmd --multi-prog"

nth_max=$(($npe_node_max / $npe_node_atmensanalrun))

export NTHREADS_ATMENSANAL=${nth_atmensanalrun:-$nth_max}
[[ $NTHREADS_ATMENSANAL -gt $nth_max ]] && export NTHREADS_ATMENSANAL=$nth_max
export APRUN_ATMENSANAL="$launcher -n $npe_atmensanalrun"

elif [ $step = "anal" ]; then

export MKL_NUM_THREADS=4
Expand Down
13 changes: 13 additions & 0 deletions jobs/rocoto/atmanalpost.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
. $HOMEgfs/ush/load_fv3gfs_modules.sh
status=$?
[[ $status -ne 0 ]] && exit $status

###############################################################
# Execute the JJOB
$HOMEgfs/jobs/JGDAS_GLOBAL_ATMOS_ANALYSIS_POST
status=$?
exit $status
13 changes: 13 additions & 0 deletions jobs/rocoto/atmanalprep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
. $HOMEgfs/ush/load_fv3gfs_modules.sh
status=$?
[[ $status -ne 0 ]] && exit $status

###############################################################
# Execute the JJOB
$HOMEgfs/jobs/JGDAS_GLOBAL_ATMOS_ANALYSIS_PREP
status=$?
exit $status
13 changes: 13 additions & 0 deletions jobs/rocoto/atmanalrun.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
. $HOMEgfs/ush/load_fv3gfs_modules.sh
status=$?
[[ $status -ne 0 ]] && exit $status

###############################################################
# Execute the JJOB
$HOMEgfs/jobs/JGDAS_GLOBAL_ATMOS_ANALYSIS_RUN
status=$?
exit $status
13 changes: 13 additions & 0 deletions jobs/rocoto/atmensanalpost.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
. $HOMEgfs/ush/load_fv3gfs_modules.sh
status=$?
[[ $status -ne 0 ]] && exit $status

###############################################################
# Execute the JJOB
$HOMEgfs/jobs/JGDAS_GLOBAL_ATMOS_ENSANAL_POST
status=$?
exit $status
13 changes: 13 additions & 0 deletions jobs/rocoto/atmensanalprep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
. $HOMEgfs/ush/load_fv3gfs_modules.sh
status=$?
[[ $status -ne 0 ]] && exit $status

###############################################################
# Execute the JJOB
$HOMEgfs/jobs/JGDAS_GLOBAL_ATMOS_ENSANAL_PREP
status=$?
exit $status
13 changes: 13 additions & 0 deletions jobs/rocoto/atmensanalrun.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -x

###############################################################
# Source FV3GFS workflow modules
. $HOMEgfs/ush/load_fv3gfs_modules.sh
status=$?
[[ $status -ne 0 ]] && exit $status

###############################################################
# Execute the JJOB
$HOMEgfs/jobs/JGDAS_GLOBAL_ATMOS_ENSANAL_RUN
status=$?
exit $status
24 changes: 24 additions & 0 deletions parm/config/config.atmanal
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash -x

########## config.atmanal ##########
# configuration common to all atm analysis tasks

echo "BEGIN: config.atmanal"

export OBS_YAML_DIR=$HOMEgfs/sorc/gdas.cd/parm/atm/obs/config/
export OBS_LIST=$HOMEgfs/sorc/gdas.cd/parm/atm/obs/lists/gdas_prototype.yaml
export ATMVARYAML=$HOMEgfs/sorc/gdas.cd/parm/atm/variational/3dvar_dripcg.yaml
export BERROR_YAML=$HOMEgfs/sorc/gdas.cd/parm/atm/berror/hybvar_bump.yaml
export FV3JEDI_FIX=$HOMEgfs/fix/fix_jedi
export R2D2_OBS_DB='ufsda_test'
export R2D2_OBS_DUMP='oper_gdas'
export R2D2_OBS_SRC='ncdiag'
export R2D2_BC_SRC='gsi'
export R2D2_BC_DUMP='oper_gdas'
export R2D2_ARCH_DB='local'
export INTERP_METHOD='barycentric'

export io_layout_x=1
export io_layout_y=1

echo "END: config.atmanal"
10 changes: 10 additions & 0 deletions parm/config/config.atmanalpost
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash -x

########## config.atmanalpost ##########
# Post Atm Analysis specific

echo "BEGIN: config.atmanalpost"

# Get task specific resources
. $EXPDIR/config.resources atmanalpost
echo "END: config.atmanalpost"
10 changes: 10 additions & 0 deletions parm/config/config.atmanalprep
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash -x

########## config.atmanalprep ##########
# Pre Atm Analysis specific

echo "BEGIN: config.atmanalprep"

# Get task specific resources
. $EXPDIR/config.resources atmanalprep
echo "END: config.atmanalprep"
14 changes: 14 additions & 0 deletions parm/config/config.atmanalrun
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash -x

########## config.atmanalrun ##########
# Atm Analysis specific

echo "BEGIN: config.atmanalrun"

# Get task specific resources
. $EXPDIR/config.resources atmanalrun

# Task specific variables
export JEDIVAREXE=$HOMEgfs/exec/fv3jedi_var.x

echo "END: config.atmanalrun"
25 changes: 25 additions & 0 deletions parm/config/config.atmensanal
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash -x

########## config.atmensanal ##########
# configuration common to all atm atmensanal analysis tasks

echo "BEGIN: config.atmensanal"

export OBS_YAML_DIR=$HOMEgfs/sorc/gdas.cd/parm/atm/obs/config/
export OBS_LIST=$HOMEgfs/sorc/gdas.cd/parm/atm/obs/lists/lgetkf_prototype.yaml
export BERROR_YAML=$HOMEgfs/sorc/gdas.cd/parm/atm/berror/hybvar_bump.yaml
export ATMENSYAML=$HOMEgfs/sorc/gdas.cd/parm/atm/lgetkf/lgetkf.yaml
export FV3JEDI_FIX=$HOMEgfs/fix/fix_jedi
export R2D2_OBS_DB='ufsda_test'
export R2D2_OBS_DUMP='oper_gdas'
export R2D2_OBS_SRC='ncdiag'
export R2D2_BC_SRC='gsi'
##export R2D2_BC_DUMP='oper_gdas'
export R2D2_BC_DUMP='prgdasens'
export R2D2_ARCH_DB='local'
export INTERP_METHOD='barycentric'

export io_layout_x=1 # hardwired to 1,1 in yamltools.py
export io_layout_y=1

echo "END: config.atmensanal"
10 changes: 10 additions & 0 deletions parm/config/config.atmensanalpost
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash -x

########## config.atmensanalpost ##########
# Post Atm Analysis specific

echo "BEGIN: config.atmensanalpost"

# Get task specific resources
. $EXPDIR/config.resources atmensanalpost
echo "END: config.atmensanalpost"
10 changes: 10 additions & 0 deletions parm/config/config.atmensanalprep
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash -x

########## config.atmensanalprep ##########
# Pre Atm Analysis specific

echo "BEGIN: config.atmensanalprep"

# Get task specific resources
. $EXPDIR/config.resources atmensanalprep
echo "END: config.atmensanalprep"
14 changes: 14 additions & 0 deletions parm/config/config.atmensanalrun
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash -x

########## config.atmensanalrun ##########
# Atm LETKFs specific

echo "BEGIN: config.atmensanalrun"

# Get task specific resources
. $EXPDIR/config.resources atmensanalrun

# Task specific variables
export JEDIENSEXE=$HOMEgfs/exec/fv3jedi_letkf.x

echo "END: config.atmensanalrun"
4 changes: 4 additions & 0 deletions parm/config/config.base.emc.dyn
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@ fi
export imp_physics=8

# Shared parameters
# DA engine
export DO_JEDIVAR="NO"
export DO_JEDIENS="NO"

# Hybrid related
export DOHYBVAR="YES"
export NMEM_ENKF=@NMEM_ENKF@
Expand Down
4 changes: 4 additions & 0 deletions parm/config/config.base.nco.static
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ export DOBNDPNT_WAVE="YES"
export imp_physics=8

# Shared parameters
# DA engine
export DO_JEDIVAR="NO"
export DO_JEDIENS="NO"

# Hybrid related
export DOHYBVAR="YES"
export NMEM_ENKF="80"
Expand Down
Loading

0 comments on commit dae8249

Please sign in to comment.