mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fault Reactivation: Remove unused methods.
This commit is contained in:
@@ -206,24 +206,3 @@ std::shared_ptr<RimFaultReactivationDataAccessor> RimFaultReactivationDataAccess
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimFaultReactivationDataAccess::elementHasValidData( std::vector<cvf::Vec3d> elementCorners ) const
|
||||
{
|
||||
auto accessor = getAccessor( RimFaultReactivation::Property::PorePressure );
|
||||
if ( !accessor ) return false;
|
||||
|
||||
accessor->setTimeStep( 0 );
|
||||
|
||||
int nValid = 0;
|
||||
|
||||
for ( auto& p : elementCorners )
|
||||
{
|
||||
if ( accessor->hasValidDataAtPosition( p ) ) nValid++;
|
||||
}
|
||||
|
||||
// if more than half of the nodes have valid data, we're ok
|
||||
return nValid > 4;
|
||||
}
|
||||
|
||||
@@ -50,8 +50,6 @@ public:
|
||||
std::vector<double>
|
||||
propertyValues( RimFaultReactivation::GridPart gridPart, RimFaultReactivation::Property property, size_t outputTimeStep ) const;
|
||||
|
||||
bool elementHasValidData( std::vector<cvf::Vec3d> elementCorners ) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<RimFaultReactivationDataAccessor> getAccessor( RimFaultReactivation::Property property ) const;
|
||||
|
||||
|
||||
@@ -45,8 +45,6 @@ public:
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const = 0;
|
||||
|
||||
virtual bool hasValidDataAtPosition( const cvf::Vec3d& position ) const = 0;
|
||||
|
||||
protected:
|
||||
virtual void updateResultAccessor() = 0;
|
||||
|
||||
|
||||
@@ -121,12 +121,3 @@ double RimFaultReactivationDataAccessorGeoMech::valueAtPosition( const cvf::Vec3
|
||||
|
||||
return std::numeric_limits<double>::infinity();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimFaultReactivationDataAccessorGeoMech::hasValidDataAtPosition( const cvf::Vec3d& position ) const
|
||||
{
|
||||
double value = valueAtPosition( position );
|
||||
return !std::isinf( value );
|
||||
}
|
||||
|
||||
@@ -44,8 +44,6 @@ public:
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
|
||||
bool hasValidDataAtPosition( const cvf::Vec3d& position ) const override;
|
||||
|
||||
private:
|
||||
void updateResultAccessor() override;
|
||||
|
||||
|
||||
@@ -111,15 +111,3 @@ double RimFaultReactivationDataAccessorPorePressure::calculatePorePressure( doub
|
||||
{
|
||||
return gradient * 9.81 * depth * 1000.0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimFaultReactivationDataAccessorPorePressure::hasValidDataAtPosition( const cvf::Vec3d& position ) const
|
||||
{
|
||||
auto cellIdx = m_mainGrid->findReservoirCellIndexFromPoint( position );
|
||||
if ( cellIdx == cvf::UNDEFINED_SIZE_T ) return false;
|
||||
|
||||
double value = m_resultAccessor->cellScalar( cellIdx );
|
||||
return !std::isinf( value );
|
||||
}
|
||||
|
||||
@@ -45,8 +45,6 @@ public:
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
|
||||
bool hasValidDataAtPosition( const cvf::Vec3d& position ) const override;
|
||||
|
||||
private:
|
||||
void updateResultAccessor() override;
|
||||
|
||||
|
||||
@@ -158,15 +158,6 @@ double RimFaultReactivationDataAccessorStress::valueAtPosition( const cvf::Vec3d
|
||||
return std::numeric_limits<double>::infinity();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimFaultReactivationDataAccessorStress::hasValidDataAtPosition( const cvf::Vec3d& position ) const
|
||||
{
|
||||
double value = valueAtPosition( position );
|
||||
return !std::isinf( value );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -48,8 +48,6 @@ public:
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
|
||||
bool hasValidDataAtPosition( const cvf::Vec3d& position ) const override;
|
||||
|
||||
private:
|
||||
void updateResultAccessor() override;
|
||||
|
||||
|
||||
@@ -96,12 +96,3 @@ double RimFaultReactivationDataAccessorTemperature::valueAtPosition( const cvf::
|
||||
|
||||
return std::numeric_limits<double>::infinity();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimFaultReactivationDataAccessorTemperature::hasValidDataAtPosition( const cvf::Vec3d& position ) const
|
||||
{
|
||||
auto cellIdx = m_mainGrid->findReservoirCellIndexFromPoint( position );
|
||||
return ( cellIdx != cvf::UNDEFINED_SIZE_T );
|
||||
}
|
||||
|
||||
@@ -45,8 +45,6 @@ public:
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
|
||||
bool hasValidDataAtPosition( const cvf::Vec3d& position ) const override;
|
||||
|
||||
private:
|
||||
void updateResultAccessor() override;
|
||||
|
||||
|
||||
@@ -101,15 +101,3 @@ double RimFaultReactivationDataAccessorVoidRatio::valueAtPosition( const cvf::Ve
|
||||
|
||||
return m_missingValue;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimFaultReactivationDataAccessorVoidRatio::hasValidDataAtPosition( const cvf::Vec3d& position ) const
|
||||
{
|
||||
auto cellIdx = m_mainGrid->findReservoirCellIndexFromPoint( position );
|
||||
if ( cellIdx == cvf::UNDEFINED_SIZE_T ) return false;
|
||||
|
||||
double value = m_resultAccessor->cellScalar( cellIdx );
|
||||
return !std::isinf( value );
|
||||
}
|
||||
|
||||
@@ -45,8 +45,6 @@ public:
|
||||
double topDepth = std::numeric_limits<double>::infinity(),
|
||||
double bottomDepth = std::numeric_limits<double>::infinity() ) const override;
|
||||
|
||||
bool hasValidDataAtPosition( const cvf::Vec3d& position ) const override;
|
||||
|
||||
private:
|
||||
void updateResultAccessor() override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user