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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user