11 #ifndef OOPS_RUNS_FORECAST_H_ 12 #define OOPS_RUNS_FORECAST_H_ 16 #include "eckit/config/LocalConfiguration.h" 25 #include "oops/util/DateTime.h" 26 #include "oops/util/Duration.h" 27 #include "oops/util/Logger.h" 43 int execute(
const eckit::Configuration & fullConfig)
const {
45 const eckit::LocalConfiguration resolConfig(fullConfig,
"resolution");
49 const eckit::LocalConfiguration modelConfig(fullConfig,
"model");
53 const eckit::LocalConfiguration initialConfig(fullConfig,
"initial");
55 Log::test() <<
"Initial state: " << xx << std::endl;
58 const ModelAux_ moderr(resol, initialConfig);
61 const util::Duration fclength(fullConfig.getString(
"forecast_length"));
62 const util::DateTime bgndate(xx.validTime());
63 const util::DateTime enddate(bgndate + fclength);
64 Log::info() <<
"Running forecast from " << bgndate <<
" to " << enddate << std::endl;
69 eckit::LocalConfiguration prtConfig;
70 if (fullConfig.has(
"prints")) {
71 prtConfig = eckit::LocalConfiguration(fullConfig,
"prints");
75 const eckit::LocalConfiguration outConfig(fullConfig,
"output");
79 model.forecast(xx, moderr, fclength, post);
81 Log::test() <<
"Final state: " << xx << std::endl;
94 #endif // OOPS_RUNS_FORECAST_H_ Handles writing-out of forecast fields.
std::string appname() const
Encapsulates the model state.
The namespace for the main oops code.
Geometry< MODEL > Geometry_
Handles writing-out of forecast fields.
subroutine, public info(self)
ModelAuxControl< MODEL > ModelAux_
Encapsulates the nonlinear forecast model.
int execute(const eckit::Configuration &fullConfig) const
Control model post processing.
void enrollProcessor(PostBase_ *pp)