Skip to content

Commit

Permalink
Merge pull request #111 from wenqing/fixing1D_DM
Browse files Browse the repository at this point in the history
CFEMesh::GenerateHighOrderNodes(): Fixed a bug when 1D elements mixed with 3D elements
  • Loading branch information
norihiro-w authored Sep 7, 2018
2 parents feff81b + f91a0f8 commit e6bf66d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MSH/msh_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,10 @@ void CFEMesh::GenerateHighOrderNodes()
if (ee == e)
continue;
thisElem = ele_vector[ee];

if (thisElem->GetElementType() == MshElemType::LINE)
continue;

nedges = thisElem->GetEdgesNumber();
// Edges of neighbors
for (ii = 0; ii < nedges; ii++)
Expand Down Expand Up @@ -1065,6 +1069,9 @@ void CFEMesh::GenerateHighOrderNodes()
for (size_t i = 0; i < thisElem0->GetFacesNumber(); i++)
{
thisElem = thisElem0->GetNeighbor(i);
if (!thisElem)
continue;

// look for adjacent solid elements
if (thisElem->GetElementType() == MshElemType::LINE)
continue;
Expand Down

0 comments on commit e6bf66d

Please sign in to comment.