16#include <Champ_Tabule_Temps.h>
54 Motcle accolade_ouverte(
"{");
55 Motcle accolade_fermee(
"}");
59 Cerr <<
"Error in Champ_Tabule_Temps::readOn : nb_compo <= 0" << finl;
65 if (motlu == accolade_ouverte)
68 DoubleVect param(nb_val);
70 for (
int i = 0; i < nb_val; i++)
72 for (
int i = 0; i < nb_val; i++)
74 is >> les_valeurs(i, k);
75 la_table.remplir(param, les_valeurs);
78 if (motlu != accolade_fermee)
80 Cerr <<
"Error reading from an object of type Champ_Tabule_Temps" << finl;
81 Cerr <<
"We expected keyword } instead of " << motlu << finl;
87 Cerr <<
"Error reading from an object of type Champ_Tabule_Temps" << finl;
88 Cerr <<
"We expected keyword { instead of " << motlu << finl;
105 DoubleVect& mes_valeurs =
valeurs();
106 if (mes_valeurs.
size() == 1)
107 mes_valeurs[0] = la_table.val(tps);
109 la_table.valeurs(mes_valeurs,tps);
void dimensionner(int, int)
Sets the number of components and the number of nodal values.
DoubleTab & valeurs() override
Overrides Champ_base::valeurs() Returns the array of values.
int lire_dimension(Entree &, const Nom &)
Verification of the field dimension Returns the dimension of the field.
Classe Champ_Tabule_Temps Derived class of Champ_Uniforme_inst that represents.
void me_calculer(double t) override
Updates the tabulated field values in time.
virtual double changer_temps(const double t)
Sets the time at which the field is defined.
double temps() const
Returns the time of the field.
Class defining operators and methods for all reading operation in an input flow (file,...
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.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.