Make initGravity() to private, call from constructor.
Also modify interface of solveGravity() to be minimal, construcing columns for segregations solver at construction time.
This commit is contained in:
@@ -232,7 +232,7 @@ int main ()
|
||||
/// \internal [transport solver]
|
||||
const double tolerance = 1e-9;
|
||||
const int max_iterations = 30;
|
||||
Opm::TransportSolverTwophaseReorder transport_solver(grid, props, tolerance, max_iterations);
|
||||
Opm::TransportSolverTwophaseReorder transport_solver(grid, props, NULL, tolerance, max_iterations);
|
||||
/// \internal [transport solver]
|
||||
/// \endinternal
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@ int main ()
|
||||
/// \internal[transport solver]
|
||||
const double tolerance = 1e-9;
|
||||
const int max_iterations = 30;
|
||||
Opm::TransportSolverTwophaseReorder transport_solver(grid, props, tolerance, max_iterations);
|
||||
Opm::TransportSolverTwophaseReorder transport_solver(grid, props, NULL, tolerance, max_iterations);
|
||||
/// \internal[transport solver]
|
||||
/// \endinternal
|
||||
|
||||
|
||||
Reference in New Issue
Block a user