mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge remote-tracking branch 'origin/2018.01.01-patch' into dev
This commit is contained in:
@@ -249,9 +249,9 @@ void RimEclipseInputCase::loadAndSyncronizeInputProperties()
|
||||
// Then read the properties from all the files referenced by the InputReservoir
|
||||
|
||||
std::vector<QString> filenames;
|
||||
for (const RimEclipseInputProperty* inputProperty : m_inputPropertyCollection()->inputProperties())
|
||||
for (const QString& fileName : additionalFiles())
|
||||
{
|
||||
filenames.push_back(inputProperty->fileName);
|
||||
filenames.push_back(fileName);
|
||||
}
|
||||
filenames.push_back(m_gridFileName);
|
||||
|
||||
|
||||
@@ -236,7 +236,7 @@ void RigNumberOfFloodedPoreVolumesCalculator::calculate(RigMainGrid* mainGrid,
|
||||
|
||||
const std::vector<double>* flowrateNNC = flowrateNNCatAllTimeSteps[timeStep-1];
|
||||
|
||||
if (flowrateNNC->size() > 0)
|
||||
if (flowrateNNC && flowrateNNC->size() > 0)
|
||||
{
|
||||
distributeNNCflow(connections,
|
||||
caseToApply,
|
||||
|
||||
@@ -66,6 +66,11 @@ RiuResultQwtPlot::~RiuResultQwtPlot()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuResultQwtPlot::addCurve(const QString& curveName, const cvf::Color3f& curveColor, const std::vector<QDateTime>& dateTimes, const std::vector<double>& timeHistoryValues)
|
||||
{
|
||||
if (dateTimes.empty() || timeHistoryValues.empty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
RiuLineSegmentQwtPlotCurve* plotCurve = new RiuLineSegmentQwtPlotCurve("Curve 1");
|
||||
|
||||
plotCurve->setSamplesFromDatesAndYValues(dateTimes, timeHistoryValues, false);
|
||||
|
||||
Reference in New Issue
Block a user