-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fix namelist creating for multiple instances #406
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@blcc - I think this looks fine, but suggest not to overwrite ntasks_ocn
.
Can merge this one you have made the change (or explain why you want to keep the code as it is).
cime_config/buildcpp
Outdated
ntasks_ocn = case.get_value("NTASKS_OCN") | ||
objroot = case.get_value("OBJROOT") | ||
if case.get_value("NINST_OCN") > 1: | ||
ntasks_ocn = case.get_value("NTASKS_PER_INST_OCN") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to define ntasks_ocn
once, not overwrite
if (case.get_value("NINST_OCN") > 1) then
ntasks_ocn = case.get_value("NTASKS_PER_INST_OCN")
else
ntasks_ocn = case.get_value("NTASKS_OCN")
end if
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, it is more clear with if-else.
I'll send updated PR tomorrow.
Hi Tomas, |
@blcc - I'm not convinced this is a good solution, since users may expect that setting the "NTASKS_OCN" option will set the |
It also make point. |
@blcc - I merged this PR, and have created a new tag |
Thank you very much. |
Get correct NTASK_OCN in buildcpp, which will be NINST_OCN times when run in multiple instance.
Move pg_blom into instance loop to reset it in every instance.