Skip to content

Commit

Permalink
run on cas when ntasks-per-node is less than 46
Browse files Browse the repository at this point in the history
  • Loading branch information
weiyuan-jiang committed Jan 28, 2025
1 parent c8925c9 commit 905414d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions GEOSldas_App/ldas_setup
Original file line number Diff line number Diff line change
Expand Up @@ -1358,10 +1358,9 @@ class LDASsetup:
constraint='cas'
if self.GEOS_SITE == "NAS":
constraint = 'cas_ait'
elif self.BUILT_ON_SLES15:
elif (int(self.rqdRmInp['ntasks-per-node']) > 46):
constraint = 'mil'
else:
assert int(self.rqdRmInp['ntasks-per-node']) <= 46, 'ntasks-per-node should be <=46 for cas'
assert self.BUILT_ON_SLES15, 'Program should be built on SLES15'

SBATCHQSUB = 'sbatch'
if self.GEOS_SITE == 'NAS':
Expand Down

0 comments on commit 905414d

Please sign in to comment.