16#include <Couplage_U.h>
17#include <Probleme_base.h>
74 Cerr <<
"[Parameter] ----------------------------" << finl;
79 dir = dirname.empty() ? dir : dirname;
101 if (
str_params_.count(
"SORTIE_ROOT_DIRECTORY") != 0)
120 converged = converged && cv;
183OBS_PTR(
Field_base) Couplage_U::findInputField(
const Nom& name)
const
188 ch=
probleme(i).findInputField(name);
196 OBS_PTR(Champ_Generique_base) ch;
199 ch=
probleme(i).findOutputField(name);
238 Cerr <<
"Problem " << nom_pb
239 <<
" not found in Couplage_U " <<
le_nom() << finl;
class Champ_Generique_base
void validateTimeStep() override
Validates the calculated unknown by moving the present time at the end of the time step.
double presentTime() const override
Returns the present time.
int postraiter(int force=1) override
Asks the problem to post-process its fields, probes, etc.
const Probleme_U & probleme(int i) const
void initialize() override
This method is called once at the beginning, before any other one of the interface Problem.
OBS_PTR(Field_base) findInputField(const Nom &name) const override
bool iterateTimeStep(bool &converged) override
In the case solveTimeStep uses an iterative process, this method executes a single iteration.
void sauver() const override
Save the problem state to disk.
int lsauv() const override
Should we save the problem state to disk now?
void resetTime(double t) override
Reset the current time of the Problem to a given value.
bool initTimeStep(double dt) override
This method allocates and initializes the unknown and given fields for the future time step.
void setStationary(bool) override
Tells to the Problem that stationary is reached or not.
void abortTimeStep() override
Aborts the resolution of the current time step.
int limpr() const override
Should we print the execution statistics now?
bool updateGivenFields() override
WARNING:
void terminate() override
This method is called once at the end, after any other one.
int indice_probleme(const Nom &nom_pb) const
void getOutputFieldsNames(Noms &noms) const override
double futureTime() const override
Returns the future time (end of current computing interval) This value is valid between initTimeStep ...
std::string newCompute() override
bool isStationary() const override
Tells if the Problem unknowns have changed during the last time step.
void getInputFieldsNames(Noms &noms) const override
This method is used to find the names of input fields understood by the Problem.
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)).
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.
virtual void sauver() const
Save the problem state to disk.
virtual int postraiter(int force=1)
Asks the problem to post-process its fields, probes, etc.
virtual void getInputFieldsNames(Noms &noms) const
This method is used to find the names of input fields understood by the Problem.
virtual bool initTimeStep(double dt)
This method allocates and initializes the unknown and given fields for the future time step.
virtual void validateTimeStep()
Validates the calculated unknown by moving the present time at the end of the time step.
virtual int limpr() const
Should we print the execution statistics now?
const Nom & le_nom() const override
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
virtual bool iterateTimeStep(bool &converged)
In the case solveTimeStep uses an iterative process, this method executes a single iteration.
virtual void setInputStringValue(const std::string &name, const std::string &val)
virtual void terminate()
This method is called once at the end, after any other one.
virtual void abortTimeStep()
Aborts the resolution of the current time step.
virtual double futureTime() const
Returns the future time (end of current computing interval) This value is valid between initTimeStep ...
virtual int lsauv() const
Should we save the problem state to disk now?
virtual std::string getOutputStringValue(const std::string &name)
virtual bool isStationary() const
Tells if the Problem unknowns have changed during the last time step.
virtual double presentTime() const
Returns the present time.
virtual void setStationary(bool)
Tells to the Problem that stationary is reached or not.
virtual void getOutputFieldsNames(Noms &noms) const
std::map< std::string, std::string > str_params_
virtual void resetTime(double time)
Reset the current time of the Problem to a given value.
virtual bool updateGivenFields()
WARNING:
virtual void post_initialize()
virtual void initialize()
This method is called once at the beginning, before any other one of the interface Problem.
class Probleme_base It is a Probleme_U that is not a coupling.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
static void set_root(const std::string dirname)
Base class for output streams.