mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2561 Fracture Template : Set Default Conductivity Result in loadDataAndUpdate()
This commit is contained in:
parent
0bf72d5f68
commit
cbb25cb514
@ -512,7 +512,6 @@ bool RiaApplication::loadProject(const QString& projectFileName, ProjectLoadActi
|
||||
|
||||
oilField->fractureDefinitionCollection()->loadAndUpdateData();
|
||||
oilField->fractureDefinitionCollection()->createAndAssignTemplateCopyForNonMatchingUnit();
|
||||
oilField->fractureDefinitionCollection()->setDefaultConductivityResultIfEmpty();
|
||||
|
||||
{
|
||||
std::vector<RimWellPathFracture*> wellPathFractures;
|
||||
|
@ -253,21 +253,6 @@ void RimFractureTemplateCollection::loadAndUpdateData()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFractureTemplateCollection::setDefaultConductivityResultIfEmpty()
|
||||
{
|
||||
for (RimFractureTemplate* f : m_fractureDefinitions())
|
||||
{
|
||||
RimStimPlanFractureTemplate* stimPlanFracture = dynamic_cast<RimStimPlanFractureTemplate*>(f);
|
||||
if (stimPlanFracture)
|
||||
{
|
||||
stimPlanFracture->setDefaultConductivityResultIfEmpty();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -50,7 +50,6 @@ public:
|
||||
|
||||
void createAndAssignTemplateCopyForNonMatchingUnit();
|
||||
void loadAndUpdateData();
|
||||
void setDefaultConductivityResultIfEmpty();
|
||||
|
||||
void updateFilePathsFromProjectPath(const QString& newProjectPath, const QString& oldProjectPath);
|
||||
protected:
|
||||
|
@ -250,6 +250,8 @@ void RimStimPlanFractureTemplate::loadDataAndUpdate()
|
||||
|
||||
if (m_stimPlanFractureDefinitionData.notNull())
|
||||
{
|
||||
setDefaultConductivityResultIfEmpty();
|
||||
|
||||
if (fractureTemplateUnit() == RiaEclipseUnitTools::UNITS_UNKNOWN)
|
||||
{
|
||||
setFractureTemplateUnit(m_stimPlanFractureDefinitionData->unitSet());
|
||||
|
@ -86,7 +86,6 @@ public:
|
||||
PosNegAccumulator& posNegAccumulator) const override;
|
||||
|
||||
QString mapUiResultNameToFileResultName(const QString& uiResultName) const;
|
||||
void setDefaultConductivityResultIfEmpty();
|
||||
|
||||
bool showStimPlanMesh() const;
|
||||
|
||||
@ -103,6 +102,7 @@ protected:
|
||||
virtual bool supportsConductivityScaling() const override { return true; }
|
||||
|
||||
private:
|
||||
void setDefaultConductivityResultIfEmpty();
|
||||
bool setBorderPolygonResultNameToDefault();
|
||||
void setDepthOfWellPathAtFracture();
|
||||
void setPerforationLength();
|
||||
|
Loading…
Reference in New Issue
Block a user