mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
Stim Plan Fracture: add assert for illegal std::vector access
This commit is contained in:
1 parent
accf5713ac
commit
0eb0101390
1 file changed
+4
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user