mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 23:23:01 -06:00
#4251 Saturation Pressure Plots: Make sure result is loaded before accessing data
This commit is contained in:
parent
738fc8e283
commit
ab7dd90483
@ -64,6 +64,8 @@ std::vector<RimSaturationPressurePlot*>
|
||||
RigEclipseResultAddress resAdr(RiaDefines::STATIC_NATIVE, RiaDefines::eqlnumResultName());
|
||||
if (results->hasResultEntry(resAdr))
|
||||
{
|
||||
results->ensureKnownResultLoaded(resAdr);
|
||||
|
||||
auto vals = results->uniqueCellScalarValues(resAdr);
|
||||
for (auto v : vals)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user