12 #include "eckit/config/Configuration.h" 14 #include "oops/util/Logger.h" 21 : oopsvars_(oopsvars) {
32 std::vector<std::string>
vars;
33 config.get(
"variables",
vars);
41 size_t nv =
vars.size();
45 for (
size_t jj = 0; jj < nv; ++jj) {
47 if (
vars[jj] ==
"x") ii = 1;
48 if (
vars[jj] ==
"q") ii = 2;
49 if (
vars[jj] ==
"u") ii = 3;
50 if (
vars[jj] ==
"v") ii = 4;
51 if (
vars[jj] ==
"bc") ii = 5;
66 : fvars_(other.fvars_),
67 oopsvars_(other.toOopsVariables()) {}
72 os <<
"qg::VariablesQG: vars = " <<
fvars_;
VariablesQG(const oops::Variables &)
void print(std::ostream &) const
const std::vector< std::string > & variables() const
std::vector< int > fvars_
void setF90(const std::vector< std::string >)
The namespace for the qg model.