11 #ifndef OOPS_RUNS_ENSFORECASTS_H_ 12 #define OOPS_RUNS_ENSFORECASTS_H_ 16 #include "eckit/config/Configuration.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::Configuration resolConfig(fullConfig,
"resolution");
49 const eckit::Configuration modelConfig(fullConfig,
"model");
52 unsigned nm = config.getElementSize(
"member");
53 for (
unsigned jj = 0; jj <
nm; ++jj) {
55 const eckit::Configuration initialConfig(fullConfig,
"member", jj);
57 Log::test() <<
"Initial state: " << xx << std::endl;
63 const util::Duration fclength(fullConfig.getString(
"forecast_length"));
64 const util::DateTime bgndate(xx.validTime());
65 const util::DateTime enddate(bgndate + fclength);
66 Log::info() <<
"Running forecast " << jj <<
" from " << bgndate
67 <<
" to " << enddate << std::endl;
72 const eckit::Configuration prtConfig(fullConfig,
"prints",
true);
75 const eckit::Configuration outConfig(fullConfig,
"output");
79 model.forecast(xx, moderr, fclength, post);
81 Log::test() <<
"Final state " << jj <<
" : " << xx << std::endl;
94 #endif // OOPS_RUNS_ENSFORECASTS_H_ Geometry< MODEL > Geometry_
Handles writing-out of forecast fields.
Encapsulates the model state.
The namespace for the main oops code.
Handles writing-out of forecast fields.
subroutine, public info(self)
Encapsulates the nonlinear forecast model.
ModelAuxControl< MODEL > ModelAux_
Control model post processing.
int execute(const eckit::Configuration &fullConfig) const
void enrollProcessor(PostBase_ *pp)
std::string appname() const