#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:
Kristian Bendiksen 2024-04-05 13:59:51 +02:00
parent 29d991159b
commit bce4dcfe54

View File

@ -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 );