16#include <SolveurSys_base.h>
17#include <EcrFicCollecte.h>
18#include <Matrice_Base.h>
19#include <MD_Vector_tools.h>
60 sortie.
ouvrir(
"Matrice.sa");
68 sortie.
ouvrir(
"Secmem.sa");
75 sortie.
ouvrir(
"Solution.sa");
78 Cout <<
"Saving of the matrix, secmem and solution ended."<<finl;
89 Motcle accolade_ouverte(
"{");
90 Motcle accolade_fermee(
"}");
97 if (motlu != accolade_ouverte)
99 Cerr <<
"Error while reading parameters of Petsc: " << finl;
100 Cerr <<
"We expected " << accolade_ouverte <<
" instead of " << motlu << finl;
110 if (nomlu==accolade_ouverte)
112 else if (nomlu==accolade_fermee)
Writing to a file. This class implements the operators and virtual methods of the SFichier class as f...
int ouvrir(const char *name, IOS_OPEN_MODE mode=ios::out) override
Opens the file with the given mode and prot parameters. These parameters are the parameters of the st...
Class defining operators and methods for all reading operation in an input flow (file,...
Matrice_Base class - Base class of the matrix hierarchy.
A character string (Nom) in uppercase.
class Nom: a character string for naming TRUST objects.
Base class for TRUST objects (Objet_U).
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.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
This class, derived from Sortie, accumulates what is sent to it into a character string.
const char * get_str() const
returns a copy of the string stored by the SChaine
void save_matrice_secmem_conditionnel(const Matrice_Base &la_matrice, const DoubleVect &secmem, const DoubleVect &solution, int binaire=1)
virtual int resoudre_systeme(const Matrice_Base &a, const DoubleVect &b, DoubleVect &x)=0
void set_read_matrix(bool flag)
Base class for output streams.
void set_bin(bool bin) override
Changes the write mode of the file.