Skip to content

Commit a37a4ae

Browse files
committed
Attempts to add Intel MPI support
1 parent b359a1f commit a37a4ae

File tree

2 files changed

+134
-123
lines changed

2 files changed

+134
-123
lines changed

GEOSldas_App/ldas_setup

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ class LDASsetup:
737737
wemin_out = self.rqdExeInp['WEMIN_OUT']
738738

739739

740-
tmp_f2g_file = tempfile.NamedTemporaryFile(delete=False)
740+
tmp_f2g_file = tempfile.NamedTemporaryFile(delete=False)
741741
cmd = self.bindir +'/preprocess_ldas.x c_f2g ' + tile + ' ' + self.domain_def.name + ' '+ self.out_path + ' ' + catchment_def + ' ' + exp_id + ' ' + _y4m2d2h2m2 + ' '+ dzsf + ' ' + tmp_f2g_file.name
742742

743743
print ('Creating f2g file: '+ tmp_f2g_file.name +'....\n')
@@ -901,7 +901,7 @@ class LDASsetup:
901901
config['input']['shared']['agrid'] = 'C180'
902902
config['input']['shared']['ogrid'] = '1440x720'
903903
config['input']['shared']['omodel'] = 'data'
904-
904+
905905
catch_obj = catchANDcn(config_obj = config)
906906
catch_obj.remap()
907907

@@ -1367,6 +1367,8 @@ class LDASsetup:
13671367
if self.GEOS_SITE == 'NAS':
13681368
SBATCHQSUB = 'qsub'
13691369

1370+
DETECTED_MPI_STACK = "@MPI_STACK@"
1371+
13701372
job_head = job_directive[self.GEOS_SITE]
13711373
lenkf_str= (job_head+job_body).format(
13721374
SBATCHQSUB = SBATCHQSUB,
@@ -1389,7 +1391,9 @@ class LDASsetup:
13891391
MY_LADAS_COUPLING = str(self.ladas_coupling),
13901392
MY_ENSEMBLE_FORCING= self.rqdExeInp.get('ENSEMBLE_FORCING', 'NO').upper(),
13911393
MY_ADAS_EXPDIR = self.adas_expdir,
1392-
MY_EXPDIR = self.expdir
1394+
MY_EXPDIR = self.expdir,
1395+
DETECTED_MPI_STACK = MPI_STACK,
1396+
BUILT_ON_SLES15 = BUILT_ON_SLES15
13931397
)
13941398

13951399
with open('lenkf.j','wt') as fout :

0 commit comments

Comments
 (0)