Removed SimulatorState::init( UnstructureGrid& )

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

No files matched your search

+1 -6
View File
@@ -1,6 +1,5 @@
#include <opm/common/ErrorMacros.hpp> #include <opm/common/ErrorMacros.hpp>
#include <opm/core/simulator/SimulatorState.hpp> #include <opm/core/simulator/SimulatorState.hpp>
#include <opm/core/grid.h>
#include <cmath> #include <cmath>
#include <cassert> #include <cassert>
@@ -41,11 +40,7 @@ SimulatorState::vectorApproxEqual(const std::vector<double>& v1,
return true; return true;
} }
void
SimulatorState::init(const UnstructuredGrid& g, int num_phases)
{
init(g.number_of_cells, g.number_of_faces, num_phases);
}
void void
SimulatorState::init(int number_of_cells, int number_of_faces, int num_phases) SimulatorState::init(int number_of_cells, int number_of_faces, int num_phases)
{ {
-4
View File
@@ -8,8 +8,6 @@
#include <vector> #include <vector>
#include <string> #include <string>
// forward declaration
struct UnstructuredGrid;
namespace Opm namespace Opm
{ {
@@ -17,8 +15,6 @@ namespace Opm
{ {
public: public:
virtual void init(const UnstructuredGrid& g, int num_phases);
virtual void init(int number_of_cells, int number_of_faces, int num_phases); virtual void init(int number_of_cells, int number_of_faces, int num_phases);
enum ExtremalSat { MinSat, MaxSat }; enum ExtremalSat { MinSat, MaxSat };
+1 -1
View File
@@ -266,7 +266,7 @@ try
/// \snippet tutorial3.cpp two-phase state /// \snippet tutorial3.cpp two-phase state
/// \internal [two-phase state] /// \internal [two-phase state]
TwophaseState state; TwophaseState state;
state.init(grid, 2); state.init(grid.number_of_cells , grid.number_of_faces, 2);
state.setFirstSat(allcells, props, TwophaseState::MinSat); state.setFirstSat(allcells, props, TwophaseState::MinSat);
/// \internal [two-phase state] /// \internal [two-phase state]
/// \endinternal /// \endinternal
+1 -1
View File
@@ -213,7 +213,7 @@ try
/// \snippet tutorial4.cpp two-phase state /// \snippet tutorial4.cpp two-phase state
/// \internal[two-phase state] /// \internal[two-phase state]
TwophaseState state; TwophaseState state;
state.init(grid, 2); state.init(grid.number_of_cells , grid.number_of_faces, 2);
state.setFirstSat(allcells, props, TwophaseState::MinSat); state.setFirstSat(allcells, props, TwophaseState::MinSat);
/// \internal[two-phase state] /// \internal[two-phase state]
/// \endinternal /// \endinternal