Skip to content

Commit

Permalink
third time lucky
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-seaice committed Aug 29, 2024
1 parent 7e29e07 commit 584a632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions payu/models/cesm_cmeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def setup(self):
rootpe = int(self.runconfig.get("PELAYOUT_attributes", f"{realm}_rootpe"))
pestride = int(self.runconfig.get("PELAYOUT_attributes", f"{realm}_pestride"))
#rootpe is zero-based
if cpucount <= (rootpe + ntasks*pestride):
if cpucount < (rootpe + ntasks*pestride):
raise ValueError(
f"Insufficient cpus for the {realm} pelayout in nuopc.runconfig"
)
Expand All @@ -182,7 +182,7 @@ def setup(self):
else:
# if nc_type is netcdf, only one pe is needed
ioroot=int(self.runconfig.get(io_section, "pio_root"))
if cpucount <= int(ioroot):
if cpucount < int(ioroot):
raise ValueError(
f"Insufficient cpus for the {io_section} ioroot pe in nuopc.runconfig"
)
Expand Down

0 comments on commit 584a632

Please sign in to comment.