16#include <Champ_Don_Fonc_xyz.h>
17#include <TRUST_Vector.h>
36 int nb_elems = domaine.nb_elem();
39 domaine.creer_tableau_elements(
valeurs());
42 VECT(Parser_U) &fxyz = fonction();
43 fxyz.dimensionner(dim);
45 for (
int i = 0; i < dim; i++)
49 Cerr <<
"Reading and interpretation of the function " << tmp << finl;
51 fxyz[i].setString(tmp);
55 fxyz[i].parseString();
56 Cerr <<
"Interpretation of function " << tmp <<
" Ok" << finl;
class Champ_Don_Fonc_xyz This class represents a data field that is a function
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.
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.
VECT(Parser_U) &fonction()
void eval_fct(const DoubleTab &positions, DoubleTab &val) const
Base class for output streams.
Domaine & interprete_get_domaine(const Nom &nom)
void mettre_a_jour_positions(DoubleTab &)
Sortie & printOn(Sortie &os) const override
Writes the object to an output stream. Virtual method to override.
virtual void echange_espace_virtuel(IsExchangeBlocking exchange_type=IsExchangeBlocking::DefaultBlocking, const std::string kernel_name="noname")