mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#11663 Make sure non-Darcy data is computed
The computation of non-Darcy properties is expensive, so we cache the results. Make sure that the calling function calls this function before using the properties.
This commit is contained in:
parent
fc2106edb0
commit
a00bfea40b
@ -117,6 +117,8 @@ std::vector<RigCompletionData>
|
||||
{
|
||||
if ( fracture->isChecked() && static_cast<size_t>( fracture->branchIndex() ) == branchIndex )
|
||||
{
|
||||
fracture->ensureValidNonDarcyProperties();
|
||||
|
||||
fractures.push_back( fracture );
|
||||
}
|
||||
}
|
||||
|
@ -789,6 +789,8 @@ bool RicWellPathExportMswCompletionsImpl::generateFracturesMswExportInfo( RimEcl
|
||||
// Check if fractures are to be assigned to current main bore segment
|
||||
for ( RimWellPathFracture* fracture : fractures )
|
||||
{
|
||||
fracture->ensureValidNonDarcyProperties();
|
||||
|
||||
double fractureStartMD = fracture->fractureMD();
|
||||
if ( fracture->fractureTemplate()->orientationType() == RimFractureTemplate::ALONG_WELL_PATH )
|
||||
{
|
||||
|
@ -316,6 +316,10 @@ const NonDarcyData& RimFracture::nonDarcyProperties() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFracture::ensureValidNonDarcyProperties()
|
||||
{
|
||||
// The computation of non-Darcy properties is expensive, so we cache the results.
|
||||
// Make sure that the calling function calls this function before using the properties.
|
||||
// https://github.com/OPM/ResInsight/issues/11663
|
||||
|
||||
if ( m_cachedFractureProperties.isDirty() )
|
||||
{
|
||||
NonDarcyData props;
|
||||
|
Loading…
Reference in New Issue
Block a user