Populate ctx and bring the solver to a ready-to-run state.
Steps performed in order: copy config into context; initialise logger; allocate solver state from config; allocate work arrays; bind flux, recon, and time-integration scheme pointers; apply initial conditions; optionally load a restart checkpoint; log the effective configuration.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(solver_run_context_t), | intent(inout) | :: | ctx |
Context to initialise. |
||
| type(config_t), | intent(in) | :: | cfg |
Configuration loaded via |
||
| character(len=*), | intent(in), | optional | :: | nml_file |
Optional namelist path stored in |
|
| logical, | intent(out), | optional | :: | is_ok | ||
| character(len=*), | intent(out), | optional | :: | message |