mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Stim Plan Fracture: add assert for illegal std::vector access
This commit is contained in:
parent
accf5713ac
commit
0eb0101390
@ -28,6 +28,8 @@
|
||||
|
||||
#include "RivWellFracturePartMgr.h"
|
||||
|
||||
#include "cafAssert.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -123,6 +125,7 @@ double RigStimPlanFractureDefinition::bottomPerfTvd() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RigStimPlanFractureDefinition::minY() const
|
||||
{
|
||||
CAF_ASSERT( !m_Ys.empty() );
|
||||
return m_Ys[0];
|
||||
}
|
||||
|
||||
@ -131,6 +134,7 @@ double RigStimPlanFractureDefinition::minY() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RigStimPlanFractureDefinition::maxY() const
|
||||
{
|
||||
CAF_ASSERT( !m_Ys.empty() );
|
||||
return m_Ys.back();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user