Skip to content

Commit

Permalink
Merge pull request mfem#3871 from mfem/psubmesh-test-fix
Browse files Browse the repository at this point in the history
ParSubMesh bug fixes
  • Loading branch information
tzanio authored Sep 19, 2023
2 parents 664dfa2 + 86ec2bf commit 8a9ca13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mesh/submesh/psubmesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ ParSubMesh::ParSubMesh(const ParMesh &parent, SubMesh::From from,
{
BuildFaceGroup(ngroups, rht, nstrias, rhq, nsquads);
}
else if (Dim == 2)
else
{
group_stria.MakeI(ngroups);
group_stria.MakeJ();
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/mesh/test_psubmesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ void multidomain_test_2d(FECType fec_type)
auto domain_submesh = ParSubMesh::CreateFromDomain(parent_mesh,
domain1);

auto boundary_submesh = ParSubMesh::CreateFromDomain(parent_mesh,
boundary1);
auto boundary_submesh = ParSubMesh::CreateFromBoundary(parent_mesh,
boundary1);

FiniteElementCollection *fec = create_fec(fec_type, p, parent_mesh.Dimension());

Expand All @@ -135,8 +135,8 @@ void multidomain_test_2d(FECType fec_type)
ParGridFunction domain1_gf(&domain1_fes);
ParGridFunction domain1_gf_ex(&domain1_fes);

FiniteElementCollection *surface_fec = create_fec(fec_type, p,
domain_submesh.Dimension());
FiniteElementCollection *surface_fec
= create_fec(fec_type, p, boundary_submesh.Dimension());
ParFiniteElementSpace boundary1_fes(&boundary_submesh, surface_fec);
ParGridFunction boundary1_gf(&boundary1_fes);
ParGridFunction boundary1_gf_ex(&boundary1_fes);
Expand Down

0 comments on commit 8a9ca13

Please sign in to comment.