16#include <RegroupeBord.h>
28template <
typename _SIZE_>
34template <
typename _SIZE_>
40template <
typename _SIZE_>
55 Cerr<<
"we expected { and not "<<mot<<finl;
71 for (
int b=0; b<nbfr; b++)
76 for (
int i=0; i<nlistbord.size(); i++)
78 if (!nlistbord_dom.contient(nlistbord[i]))
80 Cerr <<
"Problem in the RegroupeBord instruction " << finl;
81 Cerr <<
"The boundary named " << nlistbord[i] <<
" is not a boundary of the domain " << dom.
le_nom() << finl;
91template <
typename _SIZE_>
95 for (
int b=0; b<nbfr; b++)
107 Cerr<<
"Boundary "<<nom_bord<<
" has been collected"<<finl;
114template <
typename _SIZE_>
121 for (
int b=0; b<nbfr; b++)
127 if (prem_b==-1) prem_b=b;
141 nbfacestot = nbfacestot0;
142 for (
int b=0; b<nbfr; b++)
153 for (
int_t fa=0; fa<nbface; fa++)
154 for (
int s=0; s<nbsom; s++)
155 newsommet(fa+nbfacestot,s)=sommets(fa,s);
163 for (
int b=0; b<nbfr; b++)
174 if (nombord!=bordcons)
178 if (num_b<listbord.size())
179 listbord.suppr(dom.
bord(nombord));
181 listrac.suppr(dom.
raccord(nombord));
Raccord_t & raccord(int i)
int rang_frontiere(const Nom &) const
const Frontiere_t & frontiere(int i) const
Raccords_t & faces_raccord()
void fixer_premieres_faces_frontiere()
const Nom & le_nom() const override
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
Class defining operators and methods for all reading operation in an input flow (file,...
int_t dimensionner(int_t)
(Re-)sizes the faces. The neighbors are resized accordingly.
const IntTab_t & les_sommets() const
Returns the array of vertices of all faces.
int nb_som_faces() const
Returns the number of vertices per face.
void nommer(const Nom &) override
Gives a name to the boundary.
const Nom & le_nom() const override
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
int_t nb_faces() const
Returns the number of faces of the boundary.
const Faces_t & faces() const
void add(const Frontiere_32_64 &)
Adds the vertices (and faces) of the given boundary to this object (Frontiere_32_64).
Class Interprete_geometrique_base.
void associer_domaine(Nom &nom_dom)
Domaine_t & domaine(int i=0)
LIST(OBS_PTR(Domaine_t)) &domaines()
class Nom: a character string for naming TRUST objects.
bool contient(const Nom &nom) const
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.
class RegroupeBord Regroupe_bord dom titi { bord1 , bord2 }
Frontiere_32_64< _SIZE_ > Frontiere_t
void rassemble_bords(Domaine_t &dom)
Domaine_32_64< _SIZE_ > Domaine_t
Raccords_32_64< _SIZE_ > Raccords_t
Bords_32_64< _SIZE_ > Bords_t
IntTab_T< _SIZE_ > IntTab_t
Faces_32_64< _SIZE_ > Faces_t
void regroupe_bord(Domaine_t &dom, Nom nom, const LIST(Nom)&nlistbord)
Entree & interpreter_(Entree &) override
Base class for output streams.