You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Please provide a clear and concise description of what the bug is.
NorESM version: 2.0.9
HPC platform: Betzy
Compset: NF2000climo
Resolution: f19_f19
Error message (if applicable): Traceback (most recent call last):
File "/cluster/home/lisesg/NorESM/cime/scripts/./create_newcase", line 210, in
_main_func(doc)
File "/cluster/home/lisesg/NorESM/cime/scripts/./create_newcase", line 198, in _main_func
case.create(casename, srcroot, compset, grid, user_mods_dir=user_mods_dir,
File "/cluster/home/lisesg/NorESM/cime/scripts/Tools/../../scripts/lib/CIME/case/case.py", line 1449, in create
self.configure(compset_name, grid_name, machine_name=machine_name,
File "/cluster/home/lisesg/NorESM/cime/scripts/Tools/../../scripts/lib/CIME/case/case.py", line 856, in configure
if multi_driver and ninst>1:
TypeError: '>' not supported between instances of 'str' and 'int'
The problem seems to be resolved by changing the if test on line 856 in case.py from if multi_driver and ninst>1: to if multi_driver and int(ninst)>1:, but I don't know if that is the best way to fix the problem.
The text was updated successfully, but these errors were encountered:
@lisesg, I think this bug is exposed by a change in Python.
Your fix is exactly correct.
It was fixed for the newer versions of CIME in cime6.0.13.
I think either this issue should be moved to CIME or a companion issue opened there for a permanent fix for the NorESM2 release.
@gold2718, thanks for the explanation. :) I don't seem to be able to transfer the issue to cime, but I can make a new one there and link it to this one.
Describe the bug
Please provide a clear and concise description of what the bug is.
File "/cluster/home/lisesg/NorESM/cime/scripts/./create_newcase", line 210, in
_main_func(doc)
File "/cluster/home/lisesg/NorESM/cime/scripts/./create_newcase", line 198, in _main_func
case.create(casename, srcroot, compset, grid, user_mods_dir=user_mods_dir,
File "/cluster/home/lisesg/NorESM/cime/scripts/Tools/../../scripts/lib/CIME/case/case.py", line 1449, in create
self.configure(compset_name, grid_name, machine_name=machine_name,
File "/cluster/home/lisesg/NorESM/cime/scripts/Tools/../../scripts/lib/CIME/case/case.py", line 856, in configure
if multi_driver and ninst>1:
TypeError: '>' not supported between instances of 'str' and 'int'
To Reproduce
Steps to reproduce the behavior:
create_newcase --case <path-to-case-folder> --multi-driver --ninst 11 --compset NF2000climo --machine betzy --res f19_f19 --project <some-computing-project> --run-unsupported
Potential solution
The problem seems to be resolved by changing the if test on line 856 in case.py from
if multi_driver and ninst>1:
toif multi_driver and int(ninst)>1:
, but I don't know if that is the best way to fix the problem.The text was updated successfully, but these errors were encountered: