16#include <Schema_Temps_base.h>
17#include <Probleme_base.h>
18#include <Equation_base.h>
56 if (motlu != acc_ouverte)
58 Cerr <<
"We expected the keyword" << acc_ouverte <<
" instead of " << motlu << finl;
65 else if (motlu ==
"dp_regul")
68 Nom alpha_str, deb_str, dp_str;
69 Param param(
"dp_regul");
81 Cerr <<
"We expected the keyword dp or dp_regul instead of " << motlu << finl;
90 DP_->mettre_a_jour(temps);
99 if (std::abs(deb_cible) > 1e-10)
101 const double eps =
alpha_.eval(), error = (deb - deb_cible) / deb_cible;
void update_dp_regul(const Equation_base &eqn, double deb, DoubleVect &bilan)
void mettre_a_jour(double temps)
Entree & lire_donnees(Entree &)
Reads the specifications of an imposed Delta P from an input stream.
Class defining operators and methods for all reading operation in an input flow (file,...
class Equation_base The role of an equation is the calculation of one or more fields....
Probleme_base & probleme()
Returns the problem associated with the equation.
A character string (Nom) in uppercase.
class Nom: a character string for naming TRUST objects.
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(Entree &is)
Alias of lire_avec_accolades_depuis.
const Schema_Temps_base & schema_temps() const
Returns the time scheme associated with the problem.
static int me()
Returns the rank of the local processor in the current communication group. See Comm_Group::rank() an...
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
double temps_courant() const
Returns the current time.
double pas_de_temps() const
Returns the current time step (delta_t).