16#include <Champ_Composite.h>
32 Motcle motlu, acc_ouv(
"{"), acc_fer(
"}");
40 Cerr <<
"Error in the readOn of Champ_Composite ! We expected a { and not " << motlu <<
" ! Call the 911 !" << finl;
44 for (
int i = 0; i < dim_; i++) is >>
z_fld_[i];
49 Cerr <<
"Error in the readOn of Champ_Composite ! We expected a } and not " << motlu <<
" ! Call the 911 !" << finl;
54 for (
int i = 1; i <
dim_ ; i++)
57 Cerr <<
"Champ_Composite should define the same field types !" << finl;
74 for (
int nbp = 0; nbp <
dim_; nbp++)
76 for (
int j = 0; j <
z_fld_[0]->nb_comp(); j++)
83 fld->mettre_a_jour(tps);
88 for (
int nbp = 0; nbp <
dim_; nbp++)
91 z_fld_[nbp]->valeur_aux(xv,tmp);
96 tab_valeurs(i, nbp + j *
dim_) = tmp(i,j);
DoubleTab & valeur_aux(const DoubleTab &, DoubleTab &tab_valeurs) const override
Causes an error! Must be overridden by derived classes.
std::vector< OWN_PTR(Champ_Don_base)> z_fld_
void fill_valeurs_composite()
void mettre_a_jour(double tps) override
Update of the base class Champ_base: does nothing!
class Champ_Don_base base class of Given Fields (not calculated)
int fixer_nb_valeurs_nodales(int nb_noeuds) override
Sets the number of degrees of freedom per component.
DoubleTab & valeurs() override
Overrides Champ_base::valeurs() Returns the array of values.
int nb_valeurs_nodales() const override
Returns the number of degrees of freedom per component: the number of nodes.
Class defining operators and methods for all reading operation in an input flow (file,...
virtual void fixer_nb_comp(int i)
Sets the number of components of the field.
void nommer(const Nom &) override
Gives a name to the field.
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.
_SIZE_ dimension_tot(int) const override
virtual void echange_espace_virtuel(IsExchangeBlocking exchange_type=IsExchangeBlocking::DefaultBlocking, const std::string kernel_name="noname")