16#include <Champ_Front_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_Front_Composite should define the same field types !" << finl;
75 for (
int nbp = 0; nbp <
dim_; nbp++)
76 for (
int i = 0; i <
z_fld_[0]->valeurs().dimension_tot(0); i++)
77 for (
int j = 0; j <
z_fld_[0]->nb_comp(); j++)
83 for (
auto &fld :
z_fld_) fld->mettre_a_jour(temps);
88 for (
auto &fld :
z_fld_) fld->initialiser(temps,inco);
97 for (
int nbp = 0; nbp <
dim_; nbp++)
100 z_fld_[nbp]->valeurs_face(face,tmp);
102 for (
int j = 0; j < tmp.
size(); j++)
103 var(nbp + j *
dim_) = tmp(j);
std::vector< OWN_PTR(Champ_front_base)> z_fld_
void valeurs_face(int, DoubleVect &) const override
Returns the vector of field values for the given face.
void mettre_a_jour(double temps) override
DOES NOTHING, to override.
int initialiser(double temps, const Champ_Inc_base &inco) override
Initialization at the beginning of calculation.
void fill_valeurs_composite()
class Champ_front_base Base class for the hierarchy of boundary fields.
virtual DoubleTab & valeurs() override
Returns the array of field values.
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.
virtual int nb_comp() 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.
void resize(_SIZE_, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)