15#include <Partitionneur_Sous_Domaine.h>
16#include <Interprete.h>
32 Cerr <<
"Partitionneur_Sous_Domaine::printOn invalid\n" << finl;
66 Cerr <<
" filename : " <<
filename_ << finl;
68 Cerr <<
" name_ssz : " <<
name_ssz_ << finl;
78 Cerr <<
"Error in Partitionneur_Sous_Domaine::construire_partition\n";
79 Cerr <<
" The file name has not been initialized" << finl;
83 Cerr <<
"Reading of splitting file : " <<
filename_ << finl;
88 Cerr <<
"Error in Partitionneur_Sous_Domaine::construire_partition\n";
89 Cerr <<
" Failed to open file " <<
filename_ << finl;
92 IntVect elem_part_glob;
93 file >> elem_part_glob;
100 Cerr <<
"Reading of subdomaine file : " <<
filename_ssz_ << finl;
104 Cerr <<
"Error in Partitionneur_Sous_Domaine::construire_partition\n";
116 for (
int i = 0; i < elem_ssz.
size_array(); i++)
117 nb_parts_tot = std::max(nb_parts_tot, 1 + (elem_part[i] = elem_part_glob[elem_ssz[i]]));
File for reading. This class is to the C++ ifstream class what the Entree class is to the.
virtual int ouvrir(const char *name, IOS_OPEN_MODE mode=ios::in)
static Objet_U & objet(const Nom &)
See Interprete_bloc::objet_global(). BM: the Interprete class is not the best place for this.
virtual void set_param(Param &) const
const Nom & que_suis_je() const
Returns the string identifying the class.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Helper class to factorize the readOn method of Objet_U classes.
void ajouter(const char *keyword, const int *value, Param::Nature nat=Param::OPTIONAL)
Register an integer parameter.
Partitioner allowing the splitting of sub-domains (potentially overlapping) created by Create_domain_...
Nom name_ssz_
! Name of the sub-domain file
Nom filename_ssz_
! Name of the global splitting file
void validate_params() const override
Called in the readOn of Objet_U_With_Params, after reading the params.
void construire_partition(IntVect &elem_part, int &nb_parts_tot) const override
Reads the content of "filename_" and stores the result in elem_part.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.
_SIZE_ size_array() const
void resize(_SIZE_, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)