16#include <Traitement_particulier_NS_THI.h>
17#include <MD_Vector_tools.h>
54 Motcle accouverte =
"{" , accfermee =
"}" ;
59 if (motbidon == accouverte)
63 les_mots[0] =
"init_Ec";
64 les_mots[1] =
"calc_spectre";
68 while(motlu != accfermee)
70 int rang=les_mots.
search(motlu);
82 Cerr <<
"With initialization of kinetic energy Ec_init= " <<
Ec_init << finl;
87 Cerr <<
"With initialization of kinetic energy on Ecspat (init_fac==0) or Ecspec (init_fac==1) : fac_init=" <<
fac_init << finl;
92 Cerr <<
"Error while reading Traitement_particulier_NS_THI_VDF" << finl;
93 Cerr <<
"The only possible keyword here is: val_Ec" << finl;
94 Cerr <<
"You read:" << motlu << finl;
109 Cerr <<
"Error while reading Traitement_particulier_NS_THI";
110 Cerr <<
"Possible keywords are: init_Ec, calc_spectre, { and }" << finl;
111 Cerr <<
"You read:" << motlu << finl;
119 if (motlu != accfermee)
121 Cerr <<
"Error while reading Traitement_particulier_NS_THI";
122 Cerr <<
"We expected a }" << finl;
129 Cerr <<
"Error while reading Traitement_particulier_NS_THI";
130 Cerr <<
"We expected a {" << finl;
167 const char* methode_actuelle=
"Traitement_particulier_NS_THI::calcul_nb_som_dir";
171 trustIdType nb_som = domaine.les_sommets().get_md_vector()->get_sequential_items_flags(unused);
176 double nb=pow(
static_cast<double>(nb_som),1./3.);
190 const char* methode_actuelle=
"Traitement_particulier_NS_THI::calcul_nb_elem_dir";
191 trustIdType nb_elem = domaine.nb_elem();
197 double nb=pow(
static_cast<double>(nb_elem),1./3.);
213 Cerr <<
"Problem in " << methode_actuelle <<
" :" << finl;
214 Cerr <<
"Your mesh does not seem to have the same number of nodes" << finl;
215 Cerr <<
"in all directions. Check your data file... " << finl << finl;
Class defining operators and methods for all reading operation in an input flow (file,...
A character string (Nom) in uppercase.
An array of Motcle objects.
int search(const Motcle &t) const
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 abort()
Abort routine for TRUST on a fatal error.
static double mp_sum(double)
Computes the sum of x over all processors in the current group.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
static int je_suis_maitre()
Returns 1 if on the master processor of the current group (i.e. me() == 0), 0 otherwise.
Base class for output streams.
Traitement_particulier_THI This class performs specific post-processing treatments.
int & calcul_nb_som_dir(const Domaine &)
virtual void calcul_spectre_operateur(int, DoubleTab &, DoubleTab &, double)=0
void msg_erreur_maillage(const char *)
virtual void init_calc_spectre()=0
void preparer_calcul_particulier() override
virtual void calcul_spectre()=0
virtual void sorties_globales()=0
virtual void renorm_Ec()=0
Entree & lire(Entree &) override
void en_cours_de_resolution(int, DoubleTab &, DoubleTab &, double) override
int & calcul_nb_elem_dir(const Domaine &)
void post_traitement_particulier() override
Traitement_particulier_NS_base Derives from Support_Champ_Masse_Volumique: use of rho.