Add optional IJK to ResultPoint for easier debugging

This commit is contained in:
Magne Sjaastad
2023-11-13 10:21:20 +01:00
parent 9e65eb3be9
commit 0f56eaed6b
4 changed files with 47 additions and 10 deletions

View File

@@ -1243,6 +1243,12 @@ RigWellResultPoint RifReaderEclipseOutput::createWellResultPoint( const RigGridB
resultPoint.setFlowData( volumeRate, oilRate, adjustedGasRate, waterRate );
resultPoint.setConnectionFactor( connectionFactor );
auto ijkOneBased = grid->ijkFromCellIndexOneBased( gridCellIndex );
if ( ijkOneBased )
{
resultPoint.setIjk( *ijkOneBased );
}
}
return resultPoint;