polaris.tasks.ocean.realistic_global.forward.forward.Forward.setup
- Forward.setup()[source]
Add the initial-condition input files, then set up the model step.
When the step’s stage is part of a restart chain, the restart it reads (
restart_in) and the one it writes (restart_out) in the sharedrestartsdirectory are declared as an input and an output. Both paths are relative to the task work directory rather than the step’s, since the whole point of the directory is that the stages share it. Declaring them is what makes the chain explicit to Polaris: a stage whose predecessor did not produce its restart fails before the model launches, rather than aborting inside it.Omega writes each stage’s restart into a directory of its own, so the files declared for Omega are the ones in those directories; see
ForwardStage.restart_files().