Loading Unstructured_mesh/main.cpp +840 −221 File changed.Preview size limit exceeded, changes collapsed. Show changes src/UnstructuredMesh/MeshElements/MeshElement.h +6 −6 Original line number Original line Diff line number Diff line Loading @@ -378,20 +378,20 @@ public: void appendBoundaryCell(IndexType cellIndex, IndexType faceIndex){ void appendBoundaryCell(IndexType cellIndex, IndexType faceIndex){ Cell c; Cell c; c.setIndex(cellIndex); c.setIndex(cellIndex); c.setBoundaryElementIndex(faceIndex); c.SetBoundaryElementIndex(faceIndex); BoundaryCells.push_back(c); BoundaryCells.push_back(c); } } void setupBoundaryCells(){ void setupBoundaryCells(){ for (Face& face : getFaces()){ for (Face& face : getFaces()){ if (face.getCellLeftIndex() == INVALID_INDEX(IndexType)){ if (face.GetCellLeftIndex == INVALID_INDEX(IndexType)){ IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType); IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType); face.setCellLeftIndex(cellIndex); face.SetCellLeftIndex(cellIndex); appendBoundaryCell(cellIndex, face.getIndex()); appendBoundaryCell(cellIndex, face.getIndex()); } } if (face.getCellRightIndex() == INVALID_INDEX(IndexType)){ if (face.GetCellRightIndex == INVALID_INDEX(IndexType)){ IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType); IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType); face.setCellRightIndex(cellIndex); face.SetCellRightIndex(cellIndex); appendBoundaryCell(cellIndex, face.getIndex()); appendBoundaryCell(cellIndex, face.getIndex()); } } } } Loading @@ -401,7 +401,7 @@ public: void setupBoundaryCellsCenters() { void setupBoundaryCellsCenters() { for(Cell& cell : BoundaryCells){ for(Cell& cell : BoundaryCells){ cell.setCenter(getFaces().at(cell.getBoundaryElementIndex()).getCenter()); cell.SetCenter(getFaces().at(cell.getBoundaryElementIndex()).GetCenter()); } } } } Loading Loading
Unstructured_mesh/main.cpp +840 −221 File changed.Preview size limit exceeded, changes collapsed. Show changes
src/UnstructuredMesh/MeshElements/MeshElement.h +6 −6 Original line number Original line Diff line number Diff line Loading @@ -378,20 +378,20 @@ public: void appendBoundaryCell(IndexType cellIndex, IndexType faceIndex){ void appendBoundaryCell(IndexType cellIndex, IndexType faceIndex){ Cell c; Cell c; c.setIndex(cellIndex); c.setIndex(cellIndex); c.setBoundaryElementIndex(faceIndex); c.SetBoundaryElementIndex(faceIndex); BoundaryCells.push_back(c); BoundaryCells.push_back(c); } } void setupBoundaryCells(){ void setupBoundaryCells(){ for (Face& face : getFaces()){ for (Face& face : getFaces()){ if (face.getCellLeftIndex() == INVALID_INDEX(IndexType)){ if (face.GetCellLeftIndex == INVALID_INDEX(IndexType)){ IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType); IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType); face.setCellLeftIndex(cellIndex); face.SetCellLeftIndex(cellIndex); appendBoundaryCell(cellIndex, face.getIndex()); appendBoundaryCell(cellIndex, face.getIndex()); } } if (face.getCellRightIndex() == INVALID_INDEX(IndexType)){ if (face.GetCellRightIndex == INVALID_INDEX(IndexType)){ IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType); IndexType cellIndex = BoundaryCells.size() | BOUNDARY_INDEX(IndexType); face.setCellRightIndex(cellIndex); face.SetCellRightIndex(cellIndex); appendBoundaryCell(cellIndex, face.getIndex()); appendBoundaryCell(cellIndex, face.getIndex()); } } } } Loading @@ -401,7 +401,7 @@ public: void setupBoundaryCellsCenters() { void setupBoundaryCellsCenters() { for(Cell& cell : BoundaryCells){ for(Cell& cell : BoundaryCells){ cell.setCenter(getFaces().at(cell.getBoundaryElementIndex()).getCenter()); cell.SetCenter(getFaces().at(cell.getBoundaryElementIndex()).GetCenter()); } } } } Loading