16#include <Champ_Fonc_t.h>
48 Cerr <<
"Error in Champ_Fonc_t::readOn : nb_compo <= 0" << finl;
53 ft.dimensionner(nb_compo);
54 for (
int i_parser = 0; i_parser < nb_compo; i_parser++)
58 const char* s = expression.
getChar();
60 std::transform(ss.begin(), ss.end(), ss.begin(), ::toupper);
61 ft[i_parser].setNbVar(1);
62 ft[i_parser].setString(ss);
63 ft[i_parser].addVar(
"t");
64 ft[i_parser].parseString();
79 for (i = 0; i < ft.size(); i++)
85 const double v = ft[i].eval();
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.
Classe Champ_Fonc_t Derived class of Champ_Uniforme_inst that represents.
void me_calculer(double t) override
Calcul du tableau "valeurs()" au temps t a partir des fonctions analytiques lues dans le readOn.
int lire_dimension(Entree &, const Nom &)
Verification of the field dimension Returns the dimension of the field.
Class defining operators and methods for all reading operation in an input flow (file,...
const char * getChar() 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.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.