37 int vo=-1, po=-1, to=-1;
42 param.
ajouter(
"velocity_order",&vo);
44 param.
ajouter(
"pressure_order",&po);
46 param.
ajouter(
"temperature_order",&to);
55 ORDERS[
"gradient_pression"] = vo;
58 ORDERS[
"temperature"] = to;
62 ORDERS[
"pression_pa"] = po;
63 ORDERS[
"divergence_U"] = po;
88 nb_cols = (order + 1)*(order + 2) / 2;
90 nb_cols = (order + 1)*(order + 2)*(order + 3) / 6;
Class defining operators and methods for all reading operation in an input flow (file,...
Base class for "interpreter" objects.
class Nom: a character string for naming TRUST objects.
const std::string & getString() const
const Nom & que_suis_je() const
Returns the string identifying the class.
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
This class enable to change options for DG computation in a .data file.
static int Nb_col_from_order(const int order)
Return the number of columns necessary in the unknown vector for a given method order....
Entree & interpreter(Entree &) override
static int Get_order_for(const Nom &n)
static std::map< std::string, int > ORDERS
Helper class to factorize the readOn method of Objet_U classes.
void ajouter(const char *keyword, const int *value, Param::Nature nat=Param::OPTIONAL)
Register an integer parameter.
int lire_avec_accolades_depuis(Entree &is)
Parse the parameter block { ... } from is.
Base class for output streams.