mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2529 Fracture : Remove all #ifdef USE_PROTOTYPE_FEATURE_FRACTURES
This commit is contained in:
@@ -21,9 +21,7 @@
|
||||
#include "RimFishbonesCollection.h"
|
||||
#include "RimFishboneWellPathCollection.h"
|
||||
#include "RimPerforationCollection.h"
|
||||
#ifdef USE_PROTOTYPE_FEATURE_FRACTURES
|
||||
#include "RimWellPathFractureCollection.h"
|
||||
#endif // USE_PROTOTYPE_FEATURE_FRACTURES
|
||||
|
||||
#include "cvfAssert.h"
|
||||
|
||||
@@ -47,11 +45,9 @@ RimWellPathCompletions::RimWellPathCompletions()
|
||||
m_fishbonesCollection = new RimFishbonesCollection;
|
||||
m_fishbonesCollection.uiCapability()->setUiHidden(true);
|
||||
|
||||
#ifdef USE_PROTOTYPE_FEATURE_FRACTURES
|
||||
CAF_PDM_InitFieldNoDefault(&m_fractureCollection, "Fractures", "Fractures", "", "", "");
|
||||
m_fractureCollection = new RimWellPathFractureCollection;
|
||||
m_fractureCollection.uiCapability()->setUiHidden(true);
|
||||
#endif // USE_PROTOTYPE_FEATURE_FRACTURES
|
||||
|
||||
CAF_PDM_InitField(&m_wellNameForExport, "WellNameForExport", QString(), "Well Name for Completion Export", "", "", "");
|
||||
}
|
||||
@@ -95,26 +91,22 @@ QString RimWellPathCompletions::wellNameForExport() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
#ifdef USE_PROTOTYPE_FEATURE_FRACTURES
|
||||
RimWellPathFractureCollection* RimWellPathCompletions::fractureCollection() const
|
||||
{
|
||||
CVF_ASSERT(m_fractureCollection);
|
||||
|
||||
return m_fractureCollection;
|
||||
}
|
||||
#endif // USE_PROTOTYPE_FEATURE_FRACTURES
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimWellPathCompletions::hasCompletions() const
|
||||
{
|
||||
#ifdef USE_PROTOTYPE_FEATURE_FRACTURES
|
||||
if (!fractureCollection()->fractures().empty())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#endif // USE_PROTOTYPE_FEATURE_FRACTURES
|
||||
|
||||
return !fishbonesCollection()->fishbonesSubs().empty() ||
|
||||
!fishbonesCollection()->wellPathCollection()->wellPaths().empty() ||
|
||||
@@ -147,10 +139,8 @@ void RimWellPathCompletions::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTree
|
||||
uiTreeOrdering.add(&m_fishbonesCollection);
|
||||
}
|
||||
|
||||
#ifdef USE_PROTOTYPE_FEATURE_FRACTURES
|
||||
if (!fractureCollection()->fractures().empty())
|
||||
{
|
||||
uiTreeOrdering.add(&m_fractureCollection);
|
||||
}
|
||||
#endif // USE_PROTOTYPE_FEATURE_FRACTURES
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user