17#include <Probleme_U.h>
18#include <Catch_SIGINIT.h>
20#include <Perf_counters.h>
58 statistics().begin_count(STD_COUNTERS::computation_start_up);
59 Nom string(
"=====================================================");
60 Cerr <<
string << finl;
61 Cerr <<
"Initialization of the problem " << pb.
le_nom() <<
" ("<<
que_suis_je()<<
") in progress ... " << finl;
62 Cerr <<
string << finl;
74 Cerr <<
string << finl;
75 Cerr <<
"Solving of the problem " << pb.
le_nom() <<
" ("<<
que_suis_je()<<
") in progress ... " << finl;
76 Cerr <<
string << finl;
82 Cerr <<
string << finl;
83 Cerr <<
"End of solving of the problem " << pb.
le_nom() <<
" ("<<
que_suis_je()<<
")" << finl;
84 Cerr <<
string << finl;
87 Cerr <<
"Error while solving!" << finl;
static void signal_callback_handler(int signum)
void set_nom_cas_pour_signal(const Nom &cas)
Class defining operators and methods for all reading operation in an input flow (file,...
Base class for "interpreter" objects.
static Objet_U & objet(const Nom &)
See Interprete_bloc::objet_global(). BM: the Interprete class is not the best place for this.
class Nom: a character string for naming TRUST objects.
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.
static const Nom & nom_du_cas()
Returns a constant reference to the case name. This method is static.
static int DEACTIVATE_SIGINT_CATCH
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
const Nom & le_nom() const override
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
virtual void terminate()
This method is called once at the end, after any other one.
virtual bool run()
This method is a sort of main() for the Problem. It can be used if the problem is not coupled with an...
virtual void initialize()
This method is called once at the beginning, before any other one of the interface Problem.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Resoudre Interpreter that solves a problem:
Entree & interpreter(Entree &) override
Task of the interpretor: Solve a problem (name read from the input stream).
Base class for output streams.