diff --git a/env/WCOSS_C.env b/env/WCOSS_C.env index f79586a884..f7c9363cc0 100755 --- a/env/WCOSS_C.env +++ b/env/WCOSS_C.env @@ -115,17 +115,19 @@ elif [ $step = "eupd" ]; then elif [ $step = "fcst" ]; then + #PEs and PEs/node can differ for GFS and GDAS forecasts if threading differs + if [[ $CDUMP == "gfs" ]]; then + npe_fcst=$npe_fcst_gfs + npe_node_fcst=$npe_node_fcst_gfs + fi + nth_max=$(($npe_node_max / $npe_node_fcst)) export NTHREADS_FV3=${nth_fv3:-$nth_max} [[ $NTHREADS_FV3 -gt $nth_max ]] && export NTHREADS_FV3=$nth_max export cores_per_node=$npe_node_max #export APRUN_FV3="$launcher -j 1 -n ${npe_fv3:-$npe_fcst} -N $npe_node_fcst -d $NTHREADS_FV3 -cc depth" - if [ $CDUMP = "gdas" ]; then - export APRUN_FV3="$launcher -j 1 -n ${npe_fcst} -N $npe_node_fcst -d $NTHREADS_FV3 -cc depth" - else - export APRUN_FV3="$launcher -j 1 -n ${npe_fcst_gfs} -N $npe_node_fcst -d $NTHREADS_FV3 -cc depth" - fi + export APRUN_FV3="$launcher -j 1 -n ${npe_fcst} -N $npe_node_fcst -d $NTHREADS_FV3 -cc depth" export NTHREADS_REGRID_NEMSIO=${nth_regrid_nemsio:-1} [[ $NTHREADS_REGRID_NEMSIO -gt $nth_max ]] && export NTHREADS_REGRID_NEMSIO=$nth_max diff --git a/env/WCOSS_DELL_P3.env b/env/WCOSS_DELL_P3.env index 785a44f69a..63348d8f49 100755 --- a/env/WCOSS_DELL_P3.env +++ b/env/WCOSS_DELL_P3.env @@ -120,17 +120,19 @@ elif [ $step = "eupd" ]; then elif [ $step = "fcst" ]; then + #PEs and PEs/node can differ for GFS and GDAS forecasts if threading differs + if [[ $CDUMP == "gfs" ]]; then + npe_fcst=$npe_fcst_gfs + npe_node_fcst=$npe_node_fcst_gfs + fi + nth_max=$(($npe_node_max / $npe_node_fcst)) export NTHREADS_FV3=${nth_fv3:-$nth_max} [[ $NTHREADS_FV3 -gt $nth_max ]] && export NTHREADS_FV3=$nth_max export cores_per_node=$npe_node_max - if [ $CDUMP = "gdas" ]; then - #export APRUN_FV3="$launcher ${npe_fv3:-${npe_fcst:-$PBS_NP}}" - export APRUN_FV3="$launcher ${npe_fcst:-$PBS_NP}" - else - export APRUN_FV3="$launcher ${npe_fcst_gfs:-$PBS_NP}" - fi + #export APRUN_FV3="$launcher ${npe_fv3:-${npe_fcst:-$PBS_NP}}" + export APRUN_FV3="$launcher ${npe_fcst:-$PBS_NP}" export NTHREADS_REGRID_NEMSIO=${nth_regrid_nemsio:-1} [[ $NTHREADS_REGRID_NEMSIO -gt $nth_max ]] && export NTHREADS_REGRID_NEMSIO=$nth_max export APRUN_REGRID_NEMSIO="$launcher $LEVS" diff --git a/ush/forecast_predet.sh b/ush/forecast_predet.sh index e916079606..5b9015613b 100755 --- a/ush/forecast_predet.sh +++ b/ush/forecast_predet.sh @@ -122,12 +122,6 @@ FV3_GFS_predet(){ #file and the value of npe_node_fcst is not correctly defined when using more than #one thread and sets NTHREADS_FV3=1 even when the number of threads is appropraitely >1 #NTHREADS_FV3=${NTHREADS_FV3:-${NTHREADS_FCST:-${nth_fv3:-1}}} - #Threading can be different for GFS and GDAS forecasts - if [[ $CDUMP == "gdas" ]]; then - NTHREADS_FV3=${nth_fv3:-1} - else - NTHREADS_FV3=${nth_fv3_gfs:-1} - fi cores_per_node=${cores_per_node:-${npe_node_fcst:-24}} ntiles=${ntiles:-6} if [ $MEMBER -lt 0 ]; then