Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NorESM2.0.9 fails to create new case with the multi-driver mode #648

Open
lisesg opened this issue Feb 19, 2025 · 2 comments
Open

NorESM2.0.9 fails to create new case with the multi-driver mode #648

lisesg opened this issue Feb 19, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@lisesg
Copy link
Contributor

lisesg commented Feb 19, 2025

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'

To Reproduce
Steps to reproduce the behavior:

  1. 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: to if multi_driver and int(ninst)>1:, but I don't know if that is the best way to fix the problem.

@lisesg lisesg added the bug Something isn't working label Feb 19, 2025
@gold2718
Copy link

@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.

@lisesg
Copy link
Contributor Author

lisesg commented Feb 19, 2025

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants