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.
I've been thinking about how to incorporate the ability to restart a Case after running it. Effectively the only thing to change is the path to the initial condition file, which is currently a random entry in Component.input_datasets.
I am leaning towards the idea of splitting this attribute up, which I think is more sensible. For ROMS this would look like
The InputDataset class and various subclasses used above still exist, but the input_datasets attribute on Component and ROMSComponent (currently a list) would not.
This would make namelist editing less fragile and make it very easy for C-Star to have methods on Case that run successive simulations with restarts.
Seems like a good idea to me! If initial conditions sometimes need to be treated differently to other input datasets then makes sense to separate it out.
I've been thinking about how to incorporate the ability to restart a Case after running it. Effectively the only thing to change is the path to the initial condition file, which is currently a random entry in
Component.input_datasets
.I am leaning towards the idea of splitting this attribute up, which I think is more sensible. For ROMS this would look like
The
InputDataset
class and various subclasses used above still exist, but theinput_datasets
attribute onComponent
andROMSComponent
(currently a list) would not.This would make namelist editing less fragile and make it very easy for C-Star to have methods on
Case
that run successive simulations with restarts.@TomNicholas @NoraLoose thoughts?