Removed SimulatorState::init( UnstructureGrid& )

This commit is contained in:
Joakim Hove 2016-01-25 07:30:03 +01:00
parent 1686b45221
commit ba1c06d415
4 changed files with 3 additions and 12 deletions

View File

@ -1,6 +1,5 @@
#include <opm/common/ErrorMacros.hpp>
#include <opm/core/simulator/SimulatorState.hpp>
#include <opm/core/grid.h>
#include <cmath>
#include <cassert>
@ -41,11 +40,7 @@ SimulatorState::vectorApproxEqual(const std::vector<double>& v1,
return true;
}
void
SimulatorState::init(const UnstructuredGrid& g, int num_phases)
{
init(g.number_of_cells, g.number_of_faces, num_phases);
}
void
SimulatorState::init(int number_of_cells, int number_of_faces, int num_phases)
{

View File

@ -8,8 +8,6 @@
#include <vector>
#include <string>
// forward declaration
struct UnstructuredGrid;
namespace Opm
{
@ -17,8 +15,6 @@ namespace Opm
{
public:
virtual void init(const UnstructuredGrid& g, int num_phases);
virtual void init(int number_of_cells, int number_of_faces, int num_phases);
enum ExtremalSat { MinSat, MaxSat };

View File

@ -266,7 +266,7 @@ try
/// \snippet tutorial3.cpp two-phase state
/// \internal [two-phase state]
TwophaseState state;
state.init(grid, 2);
state.init(grid.number_of_cells , grid.number_of_faces, 2);
state.setFirstSat(allcells, props, TwophaseState::MinSat);
/// \internal [two-phase state]
/// \endinternal

View File

@ -213,7 +213,7 @@ try
/// \snippet tutorial4.cpp two-phase state
/// \internal[two-phase state]
TwophaseState state;
state.init(grid, 2);
state.init(grid.number_of_cells , grid.number_of_faces, 2);
state.setFirstSat(allcells, props, TwophaseState::MinSat);
/// \internal[two-phase state]
/// \endinternal