mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1044 - pre-proto - Fixed eternal loop
This commit is contained in:
@@ -182,6 +182,7 @@ RivSimWellPipesPartMgr::RivPipeBranchData* RivSimWellPipesPartMgr::pipeBranchDat
|
||||
while (i < branchIndex)
|
||||
{
|
||||
brIt++;
|
||||
i++;
|
||||
}
|
||||
|
||||
return &(*brIt);
|
||||
@@ -337,10 +338,10 @@ void RivSimWellPipesPartMgr::findGridIndexAndCellIndex(size_t branchIndex, size_
|
||||
RivPipeBranchData* branchData = pipeBranchData(branchIndex);
|
||||
if (branchData)
|
||||
{
|
||||
size_t segmentIndex = branchData->m_pipeGeomGenerator->segmentIndexFromTriangleIndex(triangleIndex);
|
||||
size_t resultIndex = branchData->m_pipeGeomGenerator->pipeResultIndexFromTriangleIndex(triangleIndex);
|
||||
|
||||
*gridIndex = branchData->m_cellIds[segmentIndex].m_gridIndex;
|
||||
*cellIndex = branchData->m_cellIds[segmentIndex].m_gridCellIndex;
|
||||
*gridIndex = branchData->m_cellIds[resultIndex].m_gridIndex;
|
||||
*cellIndex = branchData->m_cellIds[resultIndex].m_gridCellIndex;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user