Add CoupledSimulation
constructors for AMIP and Slabplanet cases
#1139
Labels
enhancement
New feature or request
After the changes made in #1136, #1137, and #1138, the only differences between AMIP and slabplanet cases will be in initialization. This provides an opportunity for us to streamline our code by limiting any notion of a mode type to the initialization stage, and providing
CoupledSimulation
constructors for the AMIP and Slabplanet cases. This will allow the user to set up a simulation in 1 of 3 ways: a pre-determined stable AMIP or Slabplanet configuration, a variant of these configurations with specific defaults overwritten (e.g. aquaplanet or using a different parameterization), or a custom simulation using user-defined component model simulations.These constructors will look something like this:
Note that this method will take in many arguments because it must receive everything needed to construct all component models and the coupled simulation. It has defaults for all arguments except for the mode type so it's very easy for a user to construct a pre-defined stable simulation, or to overwrite specific arguments as desired. Additionally, users will be able to construct a
CoupledSimulation
from component models they create themselves by using the built-in constructor rather than these mode-specific methods.This should be implemented in a way that also closes #1069
Part of #1011
The text was updated successfully, but these errors were encountered: