ESMCI / cime

Common Infrastructure for Modeling the Earth
http://esmci.github.io/cime
Other
161 stars 206 forks source link

Refactors how/when rebuilds are required #4609

Closed jasonb5 closed 4 months ago

jasonb5 commented 6 months ago

Test suite: n/a Test baseline: n/a Test namelist changes: n/a Test status: n/a

Fixes n/a User interface changes? n/a Update gh-pages html (Y/N)?:

jasonb5 commented 6 months ago

TODO

github-actions[bot] commented 5 months ago

You can preview documentation at https://esmci.github.io/cime/branch/fix-model-rebuild/html/index.html

jgfouca commented 4 months ago

@jedwards4b , you want to review or should I just merge?

rljacob commented 4 months ago

Does this mean I can: change NTASKS for a component that doesn't need a rebuild, run case.setup, immediately run case.submit without running case.build ? Do I still have to run case.setup?

jasonb5 commented 4 months ago

@rljacob Yes you would still have to run ./case.setup to regenerate the batch script files, but ./case.build can be skipped. It's possible we could automatically run ./case.setup after running ./xmlchange on a variable or make it an option to do it with a single command e.g. ./xmlchange NTASKS=8 --reset or something similar.

jgfouca commented 4 months ago

@jedwards4b , last chance to review before I merge.

jasonb5 commented 4 months ago

@jgfouca What are your thoughts on adding a --reset argument to ./xmlchange to skip the call to ./case.setup --reset? I can address this in another PR if it's a worth while addition.

jgfouca commented 4 months ago

@jasonb5 , that sounds fine to me.

jasonb5 commented 4 months ago

@jgfouca Sounds good, I'll make a separate PR for it.

jedwards4b commented 4 months ago

I was on vacation. Sorry you couldn't find another cesm person to review, I'll bring that up in our team meeting tomorrow.