mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix issues related to well bore stability plots
* Check if data is present * Move plot update to geomech case * Return empty vector if no data is present
This commit is contained in:
parent
56dd33e762
commit
ab165b0d72
@ -67,8 +67,6 @@
|
||||
|
||||
#include "RimMainPlotCollection.h"
|
||||
#include "RimMudWeightWindowParameters.h"
|
||||
#include "RimWellLogPlot.h"
|
||||
#include "RimWellLogPlotCollection.h"
|
||||
|
||||
#include "Riu3DMainWindowTools.h"
|
||||
|
||||
@ -234,12 +232,6 @@ void RigFemPartResultsCollection::setActiveFormationNames( RigFormationNames* ac
|
||||
{
|
||||
m_activeFormationNamesData = activeFormationNames;
|
||||
|
||||
RimWellLogPlotCollection* plotCollection = RimMainPlotCollection::current()->wellLogPlotCollection();
|
||||
for ( auto wellLogPlot : plotCollection->wellLogPlots() )
|
||||
{
|
||||
wellLogPlot->loadDataAndUpdate();
|
||||
}
|
||||
|
||||
this->deleteResult( RigFemResultAddress( RIG_FORMATION_NAMES, "Active Formation Names", "" ) );
|
||||
}
|
||||
|
||||
@ -1122,6 +1114,10 @@ const std::vector<float>& RigFemPartResultsCollection::resultValues( const RigFe
|
||||
CVF_ASSERT( resVarAddr.isValid() );
|
||||
|
||||
RigFemScalarResultFrames* scalarResults = findOrLoadScalarResult( partIndex, resVarAddr );
|
||||
|
||||
static std::vector<float> empty;
|
||||
if ( scalarResults->frameCount( stepIndex ) == 0 ) return empty;
|
||||
|
||||
return scalarResults->frameData( stepIndex, frameIndex );
|
||||
}
|
||||
|
||||
|
@ -924,6 +924,9 @@ void RimGeoMechCase::updateFormationNamesData()
|
||||
rigCaseData->femPartResults()->setActiveFormationNames( nullptr );
|
||||
}
|
||||
|
||||
RimWellLogPlotCollection* plotCollection = RimMainPlotCollection::current()->wellLogPlotCollection();
|
||||
plotCollection->loadDataAndUpdateAllPlots();
|
||||
|
||||
std::vector<Rim3dView*> views = this->views();
|
||||
for ( Rim3dView* view : views )
|
||||
{
|
||||
|
@ -444,7 +444,7 @@ void RimWellLogExtractionCurve::extractData( bool* isUsingPseudoLength,
|
||||
{
|
||||
curveData = extractEclipseData( eclipseCase, isUsingPseudoLength );
|
||||
}
|
||||
else if ( geomCase )
|
||||
else if ( geomCase && geomCase->geoMechData() )
|
||||
{
|
||||
curveData = extractGeomData( geomCase, isUsingPseudoLength, performDataSmoothing, smoothingThreshold );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user