16#include <Init_par_partie.h>
35 for (
int i = 0; i < nbcomp; i++) is >>
R_loc(i);
37 for (
int i = 0; i < 2 * nbcomp; i++) is >>
val_don(i);
46 for (
int i = 0; i < tab_valeurs.
dimension(0); i++)
50 if (positions(i, 0) >
R_loc(0)) tab_valeurs(i) =
val_don(0);
51 else tab_valeurs(i) =
val_don(1);
55 if (positions(i, 0) >
R_loc(0)) tab_valeurs(i, 0) =
val_don(0);
56 else tab_valeurs(i, 0) =
val_don(1);
58 if (positions(i, 1) >
R_loc(1)) tab_valeurs(i, 1) =
val_don(2);
59 else tab_valeurs(i, 1) =
val_don(3);
63 if (positions(i, 0) >
R_loc(0)) tab_valeurs(i, 0) =
val_don(0);
64 else tab_valeurs(i, 0) =
val_don(1);
66 if (positions(i, 1) >
R_loc(1)) tab_valeurs(i, 1) =
val_don(2);
67 else tab_valeurs(i, 1) =
val_don(3);
69 if (positions(i, 2) >
R_loc(2)) tab_valeurs(i, 2) =
val_don(4);
70 else tab_valeurs(i, 2) =
val_don(5);
72 else Cerr <<
" error nbcomp " << finl;
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,...
virtual void fixer_nb_comp(int i)
Sets the number of components of the field.
DoubleTab & valeur_aux(const DoubleTab &positions, DoubleTab &valeurs) const override
Causes an error! Must be overridden by derived classes.
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.
Base class for output streams.
_SIZE_ dimension(int d) const
_SIZE_ size_totale() const