C-Star is a python package for setting up and running ocean model simulations, with a particular focus on marine carbon dioxide removal (mCDR) applications.
Closes #118 . Branched from #117 , merge #117 and update diffs before review (should be +209, -123)
This PR:
adds a ROMSComponent._namelist_modifications property (list[dict]) "parallel" to ROMSComponent.namelists that tracks needed modifications to the template file based on the state of ROMSComponent
adds an update_namelists method to ROMSComponent that makes a new set of modified namelist files based on the current values in the _namelist_modifications property.
Moves all namelist modification to immediately before runtime, in ROMSComponent.run()
Closes #118 . Branched from #117 , merge #117 and update diffs before review (should be +209, -123)
This PR:
ROMSComponent._namelist_modifications
property (list[dict]
) "parallel" toROMSComponent.namelists
that tracks needed modifications to the template file based on the state ofROMSComponent
update_namelists
method toROMSComponent
that makes a new set of modified namelist files based on the current values in the_namelist_modifications
property.ROMSComponent.run()