Skip to content

Commit

Permalink
xxx correct findAdjoinNeighFace usage passing cells in place of indices
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocisternino committed Jul 2, 2021
1 parent 6027656 commit 9cfbe87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/patchkernel/patch_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5562,7 +5562,7 @@ void PatchKernel::_updateAdjacencies()
}

Cell &neigh = m_cells.at(neighId);
int neighFace = findAdjoinNeighFace(matchingCellId, matchingFace, neighId);
int neighFace = findAdjoinNeighFace(matchingCell, matchingFace, neigh);
matchingAdjacencies.emplace_back(std::make_pair<Cell *, int>(&neigh, std::move(neighFace)));
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/voloctree/voloctree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ VolOctree::StitchInfo VolOctree::deleteCells(const std::vector<DeleteInfo> &dele
}

const Cell &neigh = m_cells[neighId];
int neighFace = findAdjoinNeighFace(cellId, face, neighId);
int neighFace = findAdjoinNeighFace(cell, face, neigh);
const int *localNeighFaceConnect = m_cellTypeInfo->faceConnectStorage[neighFace].data();
ConstProxyVector<long> faceVertexIds = neigh.getFaceVertexIds(neighFace);
std::size_t nFaceVertexIds = faceVertexIds.size();
Expand Down

0 comments on commit 9cfbe87

Please sign in to comment.