Removed SimulatorState::init( UnstructureGrid& )
This commit is contained in:
parent
1686b45221
commit
ba1c06d415
@ -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)
|
||||
{
|
||||
|
@ -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 };
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user