Skip to content

Commit

Permalink
remove support for SLES12
Browse files Browse the repository at this point in the history
  • Loading branch information
weiyuan-jiang committed Feb 28, 2025
1 parent f2635ee commit 5077158
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
18 changes: 3 additions & 15 deletions GEOSldas_App/ldas_setup
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ class LDASsetup:
'MINLON','MAXLON','MINLAT','MAXLAT','EXCLUDE_FILE','INCLUDE_FILE','MWRTM_PATH','GRIDNAME',
'ADAS_EXPDIR', 'BCS_RESOLUTION' ]

# if built on sles15, BUILT_ON_SLES15 is "TRUE", else empty ""
BUILT_ON_SLES15 = "@BUILT_ON_SLES15@"
if BUILT_ON_SLES15 == "TRUE":
self.BUILT_ON_SLES15 = True
else:
self.BUILT_ON_SLES15 = False

self.GEOS_SITE = "@GEOS_SITE@"

Expand Down Expand Up @@ -705,10 +699,7 @@ class LDASsetup:
print ('\nCorrect the tile file if it is an old EASE tile format... \n')
EASEtile=self.bcsdir+'/MAPL_'+short_tile
cmd = self.bindir + '/preprocess_ldas.x correctease '+ tile + ' '+ EASEtile
if self.BUILT_ON_SLES15 :
print ("Executables were built on SLES15 and must be run on SLES15: " + cmd)
else:
print ("cmd: " + cmd)
print ("cmd: " + cmd)

sp.call(shlex.split(cmd))

Expand Down Expand Up @@ -1358,10 +1349,8 @@ class LDASsetup:
constraint='cas'
if self.GEOS_SITE == "NAS":
constraint = 'cas_ait'
elif self.BUILT_ON_SLES15:
constraint = 'mil'
else:
assert int(self.rqdRmInp['ntasks-per-node']) <= 46, 'ntasks-per-node should be <=46 for cas'
elif self.GEOS_SITE == "NCCS":
constraint = '"[mil|cas]"'

SBATCHQSUB = 'sbatch'
if self.GEOS_SITE == 'NAS':
Expand Down Expand Up @@ -1393,7 +1382,6 @@ class LDASsetup:
MY_ADAS_EXPDIR = self.adas_expdir,
MY_EXPDIR = self.expdir,
DETECTED_MPI_STACK = DETECTED_MPI_STACK,
BUILT_ON_SLES15 = str(self.BUILT_ON_SLES15).upper()
)

with open('lenkf.j','wt') as fout :
Expand Down
8 changes: 2 additions & 6 deletions GEOSldas_App/lenkf_j_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,8 @@
else if ( ${{MPI_STACK}} == "intelmpi" ) then
setenv BUILT_ON_SLES15 {BUILT_ON_SLES15}
if ( ${{BUILT_ON_SLES15}} == TRUE ) then
setenv I_MPI_FABRICS shm:ofi
setenv I_MPI_OFI_PROVIDER psm3
endif # BUILT_ON_SLES15
setenv I_MPI_FABRICS shm:ofi
setenv I_MPI_OFI_PROVIDER psm3
endif # MPI_STACK
Expand Down

0 comments on commit 5077158

Please sign in to comment.