mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix well log extraction not_null failure.
This commit is contained in:
@@ -421,6 +421,7 @@ void RimWellLogExtractionCurve::extractData( bool* isUsingPseudoLength,
|
|||||||
RimWellLogPlotCollection* wellLogCollection = mainPlotCollection->wellLogPlotCollection();
|
RimWellLogPlotCollection* wellLogCollection = mainPlotCollection->wellLogPlotCollection();
|
||||||
|
|
||||||
cvf::ref<RigEclipseWellLogExtractor> eclExtractor;
|
cvf::ref<RigEclipseWellLogExtractor> eclExtractor;
|
||||||
|
cvf::ref<RigGeoMechWellLogExtractor> geomExtractor;
|
||||||
|
|
||||||
if ( eclipseCase )
|
if ( eclipseCase )
|
||||||
{
|
{
|
||||||
@@ -448,7 +449,10 @@ void RimWellLogExtractionCurve::extractData( bool* isUsingPseudoLength,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cvf::ref<RigGeoMechWellLogExtractor> geomExtractor = wellLogCollection->findOrCreateExtractor( m_wellPath, geomCase );
|
else if ( geomCase )
|
||||||
|
{
|
||||||
|
geomExtractor = wellLogCollection->findOrCreateExtractor( m_wellPath, geomCase );
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<double> values;
|
std::vector<double> values;
|
||||||
std::vector<double> measuredDepthValues;
|
std::vector<double> measuredDepthValues;
|
||||||
@@ -458,7 +462,7 @@ void RimWellLogExtractionCurve::extractData( bool* isUsingPseudoLength,
|
|||||||
RiaDefines::DepthUnitType depthUnit = RiaDefines::DepthUnitType::UNIT_METER;
|
RiaDefines::DepthUnitType depthUnit = RiaDefines::DepthUnitType::UNIT_METER;
|
||||||
QString xUnits = RiaWellLogUnitTools<double>::noUnitString();
|
QString xUnits = RiaWellLogUnitTools<double>::noUnitString();
|
||||||
|
|
||||||
if ( eclExtractor.notNull() && eclipseCase )
|
if ( eclExtractor.notNull() )
|
||||||
{
|
{
|
||||||
measuredDepthValues = eclExtractor->cellIntersectionMDs();
|
measuredDepthValues = eclExtractor->cellIntersectionMDs();
|
||||||
tvDepthValues = eclExtractor->cellIntersectionTVDs();
|
tvDepthValues = eclExtractor->cellIntersectionTVDs();
|
||||||
|
|||||||
Reference in New Issue
Block a user