20template <
typename _SIZE_>
23template <
typename _SIZE_>
32template <
typename _SIZE_>
35 for (
auto& itr : *
this) itr.associer_domaine(un_domaine);
44template <
typename _SIZE_>
48 for (
const auto &itr : *
this) nombre += itr.nb_faces();
60template <
typename _SIZE_>
64 for (
const auto &itr : *
this)
65 if (type == itr.faces().type_face())
66 nombre += itr.nb_faces();
74template <
typename _SIZE_>
77 Cerr <<
"Joints_32_64<_SIZE_>::comprimer() - Start" << finl;
78 IntVect fait(this->size());
79 int rang1 = 0, rang2 = 0;
81 auto& list = this->get_stl_list();
82 for (
auto &itr : list)
90 for (
auto &itr2 : list)
97 Cerr <<
"agglomeration of joints " << joint1.
le_nom() <<
" and " << joint2.
le_nom() << finl;
105 Cerr <<
"Concatenation of nodes ?" << finl;
117 for (
auto itr = list.begin(); itr != list.end(); )
121 itr = list.erase(itr);
125 Cerr <<
"Joints_32_64<_SIZE_>::comprimer() - End" << finl;
134template <
typename _SIZE_>
137 for (
auto &itr : *
this)
141 if (pe == pe_joint)
return joint;
143 Cerr <<
"Error in Joints_32_64<_SIZE_>::joint_PE : joint not found" << finl;
Class defining operators and methods for all reading operation in an input flow (file,...
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.
IntTab_t & les_sommets_des_faces()
Returns the vertices of the boundary faces.
The Joint class is a Frontiere that contains the joint faces and vertices with the neighboring domain...
void ajouter_faces(const IntTab_t &)
Adds faces to the boundary (to the joint). See Frontiere::ajouter_faces(const IntTab&).
Joints class — represents a list of Joint objects.
void comprimer()
Compresses the joint list by merging joints sharing the same neighboring PE.
Domaine_32_64< _SIZE_ > Domaine_t
int_t nb_faces() const
Returns the total number of faces in all Joints_32_64 in the list.
Joint_32_64< _SIZE_ > Joint_t
void associer_domaine(const Domaine_t &)
Associates a domain with all joints in the list.
Joint_t & joint_PE(int pe)
Returns a reference to the joint whose neighboring PE is the specified one.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.