From e9a0acafe6e70324c910974f16b55c06b17a3486 Mon Sep 17 00:00:00 2001 From: Daniele Peano Date: Tue, 10 Jan 2023 12:23:56 +0100 Subject: [PATCH] Avoid the round option for project option --- CIME/XML/env_batch.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CIME/XML/env_batch.py b/CIME/XML/env_batch.py index 21fba92ad90..81a743b8c81 100644 --- a/CIME/XML/env_batch.py +++ b/CIME/XML/env_batch.py @@ -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: