mirror of
https://github.com/OPM/ResInsight.git
synced 2026-12-05 03:51:09 -06:00
Fault Reactivation: Remove unused methods.
This commit is contained in:
1 parent
d8dbdf01b3
commit
8375b3e934
13 files changed
-86
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user