mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
#11310 Fix assert on single cell model.
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.
This commit is contained in:
parent
29d991159b
commit
bce4dcfe54
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user