Skip to content

Commit

Permalink
fix failure on make_grid
Browse files Browse the repository at this point in the history
  • Loading branch information
chan-hoo committed Jul 6, 2023
1 parent d68d41e commit 9e4da76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions scripts/exregional_make_grid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,18 @@ case $MACHINE in
"WCOSS2")
ulimit -s unlimited
ulimit -a
ncores=$(( NNODES_MAKE_GRID*PPN_MAKE_GRID))
APRUN="mpiexec -n ${ncores} -ppn ${PPN_MAKE_GRID}"
APRUN="time"
;;

"HERA")
ulimit -s unlimited
ulimit -a
APRUN="time"
;;

"ORION")
ulimit -s unlimited
ulimit -a
APRUN="time"
;;

Expand Down
4 changes: 2 additions & 2 deletions ush/set_gridparams_ESGgrid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ function set_gridparams_ESGgrid() {
#-----------------------------------------------------------------------
#
del_angle_x_sg=$( bc -l <<< "(${delx}/(2.0*${radius_Earth}))*${degs_per_radian}" )
del_angle_x_sg=$( printf "%0.10f\n" ${del_angle_x_sg} )
del_angle_x_sg=$( printf "%0.17f\n" ${del_angle_x_sg} )

del_angle_y_sg=$( bc -l <<< "(${dely}/(2.0*${radius_Earth}))*${degs_per_radian}" )
del_angle_y_sg=$( printf "%0.10f\n" ${del_angle_y_sg} )
del_angle_y_sg=$( printf "%0.17f\n" ${del_angle_y_sg} )

neg_nx_of_dom_with_wide_halo=$( bc -l <<< "-($nx + 2*${halo_width})" )
neg_nx_of_dom_with_wide_halo=$( printf "%.0f\n" ${neg_nx_of_dom_with_wide_halo} )
Expand Down

0 comments on commit 9e4da76

Please sign in to comment.