mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed crash in loading Statistics RegTest manually
This commit is contained in:
@@ -41,8 +41,11 @@ void RivReservoirPartMgr::clearAndSetReservoir(const RigCaseData* eclipseCase, c
|
|||||||
m_allGrids.push_back(new RivGridPartMgr(grids[i], i, faultCollection));
|
m_allGrids.push_back(new RivGridPartMgr(grids[i], i, faultCollection));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Faults read from file are present only on main grid
|
if (eclipseCase->mainGrid())
|
||||||
m_faultsPartMgr = new RivReservoirFaultsPartMgr(eclipseCase->mainGrid(), faultCollection);
|
{
|
||||||
|
// Faults read from file are present only on main grid
|
||||||
|
m_faultsPartMgr = new RivReservoirFaultsPartMgr(eclipseCase->mainGrid(), faultCollection);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ bool faultComparator(const cvf::ref<RigFault>& a, const cvf::ref<RigFault>& b)
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimFaultCollection::syncronizeFaults()
|
void RimFaultCollection::syncronizeFaults()
|
||||||
{
|
{
|
||||||
if (!(m_reservoirView && m_reservoirView->eclipseCase() && m_reservoirView->eclipseCase()->reservoirData()) ) return;
|
if (!(m_reservoirView && m_reservoirView->eclipseCase() && m_reservoirView->eclipseCase()->reservoirData() && m_reservoirView->eclipseCase()->reservoirData()->mainGrid()) ) return;
|
||||||
|
|
||||||
cvf::ref<cvf::Color3fArray> partColors = RivColorTableArray::colorTableArray();
|
cvf::ref<cvf::Color3fArray> partColors = RivColorTableArray::colorTableArray();
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
addpath("/home/builder/Projects/ResInsightBuildDir/OctavePlugin");
|
|
||||||
CInfo = riGetActiveCellInfo();
|
CInfo = riGetActiveCellInfo();
|
||||||
SOIL = riGetActiveCellProperty("SOIL");
|
SOIL = riGetActiveCellProperty("SOIL");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user