Skip to content

Access to edges (2D faces) of neighboring elements on different MPI ranks with an element iterator #4390

Answered by v-dobrev
FH-9 asked this question in Q&A
Discussion options

You must be logged in to vote

I was thinking about just manually merging the volume rule and the transformed face rules (for each of the faces of the element), however, you can just add another loop over the faces and their (mapped) quadrature points after your loop over the volume quadrature points. This will look something like this:

   int face_nbr_id = 0; // loop over this index
   const Element *el = pmesh.face_nbr_elements[face_nbr_id];
   const Element::Type etype = el->GetType();
   const Geometry::Type egeom = el->GetGeometryType();
   IntegrationPointTransformation ip_tr;
   for (int f = 0; f < Geometry::NumBdrArray[egeom]; f++)
   {
      Element::Type ftype;
      Geometry::Type fgeom;
      if (Geometry::…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@FH-9
Comment options

@v-dobrev
Comment options

@FH-9
Comment options

@v-dobrev
Comment options

Answer selected by FH-9
@FH-9
Comment options

@v-dobrev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants