mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Convert to enum class
This commit is contained in:
@@ -1930,21 +1930,21 @@ std::vector<std::pair<double, double>> RimWellLogTrack::waterAndRockRegions( Ria
|
||||
}
|
||||
double waterEndMD = extractor->cellIntersectionMDs().front();
|
||||
double rockEndMD = extractor->cellIntersectionMDs().back();
|
||||
return { { waterStartMD, waterEndMD }, { waterEndMD, rockEndMD } };
|
||||
return {{waterStartMD, waterEndMD}, {waterEndMD, rockEndMD}};
|
||||
}
|
||||
else if ( depthType == RiaDefines::TRUE_VERTICAL_DEPTH )
|
||||
{
|
||||
double waterStartTVD = 0.0;
|
||||
double waterEndTVD = extractor->cellIntersectionTVDs().front();
|
||||
double rockEndTVD = extractor->cellIntersectionTVDs().back();
|
||||
return { { waterStartTVD, waterEndTVD }, { waterEndTVD, rockEndTVD } };
|
||||
return {{waterStartTVD, waterEndTVD}, {waterEndTVD, rockEndTVD}};
|
||||
}
|
||||
else if ( depthType == RiaDefines::TRUE_VERTICAL_DEPTH_RKB )
|
||||
{
|
||||
double waterStartTVDRKB = extractor->wellPathData()->rkbDiff();
|
||||
double waterEndTVDRKB = extractor->cellIntersectionTVDs().front() + extractor->wellPathData()->rkbDiff();
|
||||
double rockEndTVDRKB = extractor->cellIntersectionTVDs().back() + extractor->wellPathData()->rkbDiff();
|
||||
return { { waterStartTVDRKB, waterEndTVDRKB }, { waterEndTVDRKB, rockEndTVDRKB } };
|
||||
return {{waterStartTVDRKB, waterEndTVDRKB}, {waterEndTVDRKB, rockEndTVDRKB}};
|
||||
}
|
||||
return {};
|
||||
}
|
||||
@@ -2354,7 +2354,7 @@ void RimWellLogTrack::updateFormationNamesOnPlot()
|
||||
0,
|
||||
RiaDefines::PorosityModelType::MATRIX_MODEL,
|
||||
0,
|
||||
RigEclipseResultAddress( RiaDefines::FORMATION_NAMES,
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::FORMATION_NAMES,
|
||||
RiaDefines::activeFormationNamesResultName() ) );
|
||||
|
||||
curveData = RimWellLogTrack::curveSamplingPointData( eclWellLogExtractor, resultAccessor.p() );
|
||||
@@ -2384,7 +2384,7 @@ void RimWellLogTrack::updateFormationNamesOnPlot()
|
||||
const std::vector<std::pair<double, double>> waterAndRockIntervals =
|
||||
waterAndRockRegions( plot->depthType(), extractor );
|
||||
m_annotationTool->attachNamedRegions( m_plotWidget,
|
||||
{ "Sea Level", "" },
|
||||
{"Sea Level", ""},
|
||||
xRange,
|
||||
waterAndRockIntervals,
|
||||
m_regionAnnotationDisplay(),
|
||||
@@ -2392,7 +2392,7 @@ void RimWellLogTrack::updateFormationNamesOnPlot()
|
||||
( ( 100 - m_colorShadingTransparency ) * 255 ) / 100,
|
||||
m_showRegionLabels(),
|
||||
RiuPlotAnnotationTool::LEFT_COLUMN,
|
||||
{ Qt::SolidPattern, Qt::Dense6Pattern } );
|
||||
{Qt::SolidPattern, Qt::Dense6Pattern} );
|
||||
}
|
||||
|
||||
if ( m_formationSource == CASE )
|
||||
@@ -2590,16 +2590,16 @@ void RimWellLogTrack::updateWellPathAttributesOnPlot()
|
||||
}
|
||||
}
|
||||
|
||||
const std::map<RiaDefines::WellPathComponentType, int> sortIndices = { { RiaDefines::WELL_PATH, 0 },
|
||||
{ RiaDefines::CASING, 1 },
|
||||
{ RiaDefines::LINER, 2 },
|
||||
{ RiaDefines::PERFORATION_INTERVAL, 3 },
|
||||
{ RiaDefines::FISHBONES, 4 },
|
||||
{ RiaDefines::FRACTURE, 5 },
|
||||
{ RiaDefines::PACKER, 6 },
|
||||
{ RiaDefines::ICD, 7 },
|
||||
{ RiaDefines::AICD, 8 },
|
||||
{ RiaDefines::ICV, 9 } };
|
||||
const std::map<RiaDefines::WellPathComponentType, int> sortIndices = {{RiaDefines::WELL_PATH, 0},
|
||||
{RiaDefines::CASING, 1},
|
||||
{RiaDefines::LINER, 2},
|
||||
{RiaDefines::PERFORATION_INTERVAL, 3},
|
||||
{RiaDefines::FISHBONES, 4},
|
||||
{RiaDefines::FRACTURE, 5},
|
||||
{RiaDefines::PACKER, 6},
|
||||
{RiaDefines::ICD, 7},
|
||||
{RiaDefines::AICD, 8},
|
||||
{RiaDefines::ICV, 9}};
|
||||
|
||||
std::stable_sort( allWellPathComponents.begin(),
|
||||
allWellPathComponents.end(),
|
||||
|
||||
Reference in New Issue
Block a user