Skip to content

Commit

Permalink
#11310 Fix assert on single cell model.
Browse files Browse the repository at this point in the history
Well pipe radius would become HUGE_VAL due to off-by-one error.
The assert could only happen on model with a single cell.

Fixes #11310.
  • Loading branch information
kriben committed Apr 5, 2024
1 parent c074033 commit 6da4ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fwk/AppFwk/CommonCode/cvfStructGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ void StructGridInterface::computeCharacteristicCellSize( const std::vector<size_

size_t i, j, k = 0;
size_t index = 0;
while ( index < globalCellIndices.size() - 1 )
while ( index < globalCellIndices.size() )
{
size_t cellIndex = globalCellIndices[index];
ijkFromCellIndex( cellIndex, &i, &j, &k );
Expand Down

0 comments on commit 6da4ab6

Please sign in to comment.