Skip to content

Commit 1341af9

Browse files
committed
Better logic
1 parent a37a4ae commit 1341af9

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

GEOSldas_App/ldas_setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ class LDASsetup:
13921392
MY_ENSEMBLE_FORCING= self.rqdExeInp.get('ENSEMBLE_FORCING', 'NO').upper(),
13931393
MY_ADAS_EXPDIR = self.adas_expdir,
13941394
MY_EXPDIR = self.expdir,
1395-
DETECTED_MPI_STACK = MPI_STACK,
1395+
DETECTED_MPI_STACK = DETECTED_MPI_STACK,
13961396
BUILT_ON_SLES15 = BUILT_ON_SLES15
13971397
)
13981398

GEOSldas_App/lenkf_j_template.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@
6363
6464
source $GEOSBIN/g5_modules
6565
66+
setenv MPI_STACK {DETECTED_MPI_STACK}
67+
68+
if ( ${{MPI_STACK}} == "openmpi" ) then
69+
6670
# OPENMPI flags
6771
# Turn off warning about TMPDIR on NFS
6872
setenv OMPI_MCA_shmem_mmap_enable_nfs_warning 0
@@ -81,12 +85,16 @@
8185
# disable file locks
8286
setenv OMPI_MCA_sharedfp "^lockedfile,individual"
8387
84-
setenv BUILT_ON_SLES15 = {BUILT_ON_SLES15}
88+
else if ( ${{MPI_STACK}} == "intelmpi" ) then
89+
90+
setenv BUILT_ON_SLES15 {BUILT_ON_SLES15}
8591
8692
if ( ${{BUILT_ON_SLES15}} == TRUE ) then
8793
setenv I_MPI_FABRICS shm:ofi
8894
setenv I_MPI_OFI_PROVIDER psm3
89-
endif
95+
endif # BUILT_ON_SLES15
96+
97+
endif # MPI_STACK
9098
9199
# By default, ensure 0-diff across processor architecture by limiting MKL's freedom to pick algorithms.
92100
# As of June 2021, MKL_CBWR=AVX2 is fastest setting that works for both haswell and skylake at NCCS.

0 commit comments

Comments
 (0)