Loading src/UnstructuredMesh/MeshElements/MeshElement.h +5 −5 Original line number Diff line number Diff line Loading @@ -378,20 +378,20 @@ public: void appendBoundaryCell(IndexType cellIndex, IndexType faceIndex){ Cell c; c.setIndex(cellIndex); c.SetBoundaryElementIndex(faceIndex); c.setBoundaryElementIndex(faceIndex); BoundaryCells.push_back(c); } void setupBoundaryCells(){ for (Face& face : getFaces()){ if (face.GetCellLeftIndex == INVALID_INDEX(IndexType)){ if (face.getCellLeftIndex == INVALID_INDEX(IndexType)){ IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType); face.SetCellLeftIndex(cellIndex); face.setCellLeftIndex(cellIndex); appendBoundaryCell(cellIndex, face.getIndex()); } if (face.GetCellRightIndex == INVALID_INDEX(IndexType)){ if (face.getCellRightIndex == INVALID_INDEX(IndexType)){ IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType); face.SetCellRightIndex(cellIndex); face.setCellRightIndex(cellIndex); appendBoundaryCell(cellIndex, face.getIndex()); } } Loading Loading
src/UnstructuredMesh/MeshElements/MeshElement.h +5 −5 Original line number Diff line number Diff line Loading @@ -378,20 +378,20 @@ public: void appendBoundaryCell(IndexType cellIndex, IndexType faceIndex){ Cell c; c.setIndex(cellIndex); c.SetBoundaryElementIndex(faceIndex); c.setBoundaryElementIndex(faceIndex); BoundaryCells.push_back(c); } void setupBoundaryCells(){ for (Face& face : getFaces()){ if (face.GetCellLeftIndex == INVALID_INDEX(IndexType)){ if (face.getCellLeftIndex == INVALID_INDEX(IndexType)){ IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType); face.SetCellLeftIndex(cellIndex); face.setCellLeftIndex(cellIndex); appendBoundaryCell(cellIndex, face.getIndex()); } if (face.GetCellRightIndex == INVALID_INDEX(IndexType)){ if (face.getCellRightIndex == INVALID_INDEX(IndexType)){ IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType); face.SetCellRightIndex(cellIndex); face.setCellRightIndex(cellIndex); appendBoundaryCell(cellIndex, face.getIndex()); } } Loading