16#include <LecFicDiffuse_JDD.h>
17#include <Postraitement.h>
20Implemente_instanciable(
Sondes,
"Sondes|Probes", LIST(OWN_PTR(
Sonde)));
41 Motcle accolade_ouverte(
"{");
42 Motcle accolade_fermee(
"}");
46 if (motlu != accolade_ouverte)
48 Cerr <<
"Error while reading the probes in the postprocessing" << finl;
49 Cerr <<
"We expected { to start to read the probes" << finl;
54 if (motlu ==
"FICHIER")
56 Cerr<<
"Error: Sondes { " << motlu <<
" .... } no more allowed, use Sondes_fichier { " << motlu <<
" .... }" <<finl;
59 else if (motlu == accolade_fermee)
61 Cerr <<
"Error while reading the probes in the postprocessing" << finl;
62 Cerr <<
"You have not defined any probe" << finl;
67 const bool is_ijk = mon_post->que_suis_je() ==
"Postprocessing_IJK";
68 while (motlu != accolade_fermee)
70 OWN_PTR(Sonde) une_sonde;
72 une_sonde.typer(
"Sonde_IJK");
74 une_sonde.typer(
"Sonde");
75 une_sonde->nommer(motlu);
76 une_sonde->associer_post(mon_post.valeur());
77 s >> une_sonde.valeur();
81 Cerr <<
"End of reading probes " << finl;
91 mon_post->probleme().get_noms_champs_postraitables(noms);
92 noms_champs_postraitables_.dimensionner_force(noms.size());
93 for (
int i = 0; i < noms.size(); i++)
94 noms_champs_postraitables_[i] = noms[i];
101 for (
auto &itr : *
this) itr->completer();
109 for (
auto &itr : *
this) itr->postraiter();
117 espaceStockageList.vide();
129 sourceList.add(ma_source);
130 espaceStockageList.add(espace_stockage);
133 return espace_stockage ? espaceStockageList.dernier().valeur() : ma_source;
135 else if (espaceStockageList(num))
136 return espaceStockageList(num).valeur();
138 return sourceList(num);
148 for (
auto &itr : *
this) itr->mettre_a_jour(temps, tinit);
class Champ_Generique_base
virtual const Champ_base & get_champ(OWN_PTR(Champ_base) &espace_stockage) const =0
void fixer_identifiant_appel(const Nom &identifiant)
class Champ_base This class is the base of the fields hierarchy.
Class defining operators and methods for all reading operation in an input flow (file,...
class Nom: a character string for naming TRUST objects.
An array of character strings (VECT(Nom)).
int rang(const char *const ch) const
class Postraitement. The class holds -a list of generic fields champs_post_complet_ containing
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
class Sonde. This class allows tracking the evolution of a field over time.
void set_update_positions(bool update_positions)
Modifies the update-positions setting for mobile probes.
void mettre_a_jour(double temps, double tinit)
Updates each probe in the list in time.
void postraiter()
Performs post-processing on each probe in the list.
void set_noms_champs_postraitables()
void associer_post(const Postraitement &)
Associates a post-processing object with the probe list.
const Nom & nom_champ_lu_
bool get_update_positions()
Returns the update-positions setting for mobile probes.
Base class for output streams.