From 12991490bd3fb8105ef49e1970a497ed6561dac3 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Thu, 25 Feb 2016 21:47:47 +0100 Subject: [PATCH] Replaced SimulatorState -> SimulationDatacontainer Have removed the SimulatorState base class, and instead replaced with the SimulationDatacontainer class from opm-common. The SimulatorState objects were typcially created with a default constructor, and then explicitly initialized with a SimulatorState::init() method. For the SimulationDataContainer RAII is employed; the init( ) has been removed - and there is no default constructor. --- examples/compute_initial_state.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/compute_initial_state.cpp b/examples/compute_initial_state.cpp index adf85ab53..a88638f02 100644 --- a/examples/compute_initial_state.cpp +++ b/examples/compute_initial_state.cpp @@ -96,7 +96,8 @@ try warnIfUnusedParams(param); // Initialisation. - BlackoilState state; + //initBlackoilSurfvolUsingRSorRV(UgGridHelpers::numCells(grid), props, state); + BlackoilState state( UgGridHelpers::numCells(grid) , UgGridHelpers::numFaces(grid), 3); initStateEquil(grid, props, deck, eclipseState, grav, state); // Output.