Merge branch 'ex40' of github.com:mfem/mfem into ex40

This commit is contained in:
Brendan Keith
2024-04-15 11:01:56 -04:00
3 changed files with 10 additions and 7 deletions
+6 -6
View File
@@ -3023,7 +3023,7 @@ void Mesh::FinalizeTetMesh(int generate_edges, int refine, bool fix_orientation)
FinalizeCheck();
CheckElementOrientation(fix_orientation);
if (NumOfBdrElements == 0)
if (!HasBoundaryElements())
{
GetElementToFaceTable();
GenerateFaces();
@@ -3065,7 +3065,7 @@ void Mesh::FinalizeWedgeMesh(int generate_edges, int refine,
FinalizeCheck();
CheckElementOrientation(fix_orientation);
if (NumOfBdrElements == 0)
if (!HasBoundaryElements())
{
GetElementToFaceTable();
GenerateFaces();
@@ -3102,7 +3102,7 @@ void Mesh::FinalizeHexMesh(int generate_edges, int refine, bool fix_orientation)
GetElementToFaceTable();
GenerateFaces();
if (NumOfBdrElements == 0)
if (!HasBoundaryElements())
{
GenerateBoundaryElements();
}
@@ -3175,7 +3175,7 @@ void Mesh::FinalizeTopology(bool generate_bdr)
{
GetElementToFaceTable();
GenerateFaces();
if (NumOfBdrElements == 0 && generate_bdr)
if (!HasBoundaryElements() && generate_bdr)
{
GenerateBoundaryElements();
GetElementToFaceTable(); // update be_to_face
@@ -3195,7 +3195,7 @@ void Mesh::FinalizeTopology(bool generate_bdr)
if (Dim == 2)
{
GenerateFaces(); // 'Faces' in 2D refers to the edges
if (NumOfBdrElements == 0 && generate_bdr)
if (!HasBoundaryElements() && generate_bdr)
{
GenerateBoundaryElements();
}
@@ -3209,7 +3209,7 @@ void Mesh::FinalizeTopology(bool generate_bdr)
if (Dim == 1)
{
GenerateFaces();
if (NumOfBdrElements == 0 && generate_bdr)
if (!HasBoundaryElements() && generate_bdr)
{
// be_to_face will be set inside GenerateBoundaryElements
GenerateBoundaryElements();
+1 -1
View File
@@ -969,7 +969,7 @@ public:
int AddBdrPoint(int v, int attr = 1);
void GenerateBoundaryElements();
virtual void GenerateBoundaryElements();
/// Finalize the construction of a triangular Mesh.
void FinalizeTriMesh(int generate_edges = 0, int refine = 0,
bool fix_orientation = true);
+3
View File
@@ -646,6 +646,9 @@ public:
shared faces) are counted excluding all master non-conforming faces. */
int GetNFbyType(FaceType type) const override;
void GenerateBoundaryElements() override
{ MFEM_ABORT("Generation of boundary elements works properly only on serial meshes."); }
/// See the remarks for the serial version in mesh.hpp
MFEM_DEPRECATED void ReorientTetMesh() override;