Skip to content

Commit

Permalink
Merge pull request ESMCI#4 from daniele-peano/dev/cmcc-cm
Browse files Browse the repository at this point in the history
Avoid the round option for project option
  • Loading branch information
daniele-peano authored Jan 10, 2023
2 parents 2e7963f + e9a0aca commit 253f600
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CIME/XML/env_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,10 @@ def _resolve_argument(self, case, flag, name, job):
else:
rval = val

# We don't want floating-point data (ignore anything else)
if str(rval).replace(".", "", 1).isdigit():
rval = int(round(float(rval)))
if flag != "-P":
# We don't want floating-point data (ignore anything else)
if str(rval).replace(".", "", 1).isdigit():
rval = int(round(float(rval)))

# need a correction for tasks per node
if flag == "-n" and rval <= 0:
Expand Down

0 comments on commit 253f600

Please sign in to comment.