mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Fix crash in RimWellIADataAccess::interpolatedResultValue for out-of-grid positions
This commit is contained in:
@@ -131,6 +131,7 @@ double RimWellIADataAccess::interpolatedResultValue( const RigFemPart* f
|
||||
const cvf::Vec3d& position )
|
||||
{
|
||||
int elmIdx = elementIndex( position );
|
||||
if ( elmIdx < 0 ) return 0.0;
|
||||
|
||||
RigElementType elmType = femPart->elementType( elmIdx );
|
||||
const int* elementConn = femPart->connectivities( elmIdx );
|
||||
|
||||
Reference in New Issue
Block a user