16#include <NettoieNoeuds.h>
17#include <TRUST_Deriv.h>
34template <
typename _SIZE_>
40template <
typename _SIZE_>
46inline void verifie_syntaxe(
Motcle& motlu)
48 if (motlu!=
"}" && motlu!=
",")
50 Cerr <<
"We expected , or }" << finl;
73template <
typename _SIZE_>
78 Cerr <<
"Mailler keyword can't be used in parallel calculation!" << finl;
79 Cerr <<
"Use only Scatter keyword to read partitioned mesh." << finl;
93 Cerr <<
"We expected a {" << finl;
97 std::list<Domaine_t*> dom_lst;
111 verifie_syntaxe(motlu);
113 else if(motlu==
"Domain")
117 Cerr <<
"Adding a domain " << nom_dom << finl;
119 dom_lst.push_back(&added_dom);
121 verifie_syntaxe(motlu);
125 dom_lst2.push_back(OWN_PTR(
Domaine_t)());
126 OWN_PTR(
Domaine_t)& un_domaine = dom_lst2.back();
127 un_domaine.typer(typ_domaine);
128 Domaine_t& ze_domaine = un_domaine.valeur();
130 dom_lst.push_back(&ze_domaine);
132 verifie_syntaxe(motlu);
void fill_from_list(std::list< Domaine_32_64 * > &lst)
Fills the Domaine from a list of Domaine objects by aggregating them.
void fixer_premieres_faces_frontiere()
void fixer_epsilon(double eps)
Class defining operators and methods for all reading operation in an input flow (file,...
Class Interprete_geometrique_base.
void associer_domaine(Nom &nom_dom)
Domaine_t & domaine(int i=0)
static Objet_U & objet(const Nom &)
See Interprete_bloc::objet_global(). BM: the Interprete class is not the best place for this.
Class Mailler A mesher by agglomeration of domains (paves in 2D and blocks in 3D).
Domaine_32_64< _SIZE_ > Domaine_t
Entree & interpreter_(Entree &) override
Main function of the Mailler interpreter Data set structure (in dimension 2):
A character string (Nom) in uppercase.
static void nettoie(Domaine_t &)
class Nom: a character string for naming TRUST objects.
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
static double precision_geom
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
static bool is_parallel()
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
static void init_sequential_domain(Domaine_32_64< _SIZE_ > &dom)
Create parallel descriptors for the vertex and element arrays of the domain (necessary because Scatte...
static void uninit_sequential_domain(Domaine_32_64< _SIZE_ > &dom)
Method used by interpreters that modify the domain (sequential), destroys the descriptors of vertices...
Base class for output streams.