Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove support for SLES12 #83

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- NCCS has retired SLES12, so the conditions on SLES12 and SLES15 are removed
- Updated subroutine read_obs_sm_ASCAT_EUMET() to work with both original and revised file name templates.
- Updated subroutines read_obs_sm_ASCAT_EUMET(), read_obs_SMAP_halforbit_Tb(), read_obs_SMOS() and read_obs_MODIS_SCF() with hardcoded time ranges for when observations are available and should be read.
- Revised variable names (SHORT_NAME) and descriptions (LONG_NAME) to match M21C file specs.
Expand Down
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