From 99bb8c9587c6a7e40137b2053ebb94dbaf1c2bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 7 Jun 2012 13:34:05 +0200 Subject: [PATCH] Removed default null argument for wells in IncompTpfa constructor. --- tutorials/tutorial2.cpp | 11 +++++++---- tutorials/tutorial3.cpp | 5 +++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/tutorials/tutorial2.cpp b/tutorials/tutorial2.cpp index 9e84921e6..79efb1b83 100644 --- a/tutorials/tutorial2.cpp +++ b/tutorials/tutorial2.cpp @@ -108,12 +108,15 @@ int main() Opm::LinearSolverUmfpack linsolver; /// \endcode /// \page tutorial2 + /// We set up a pressure solver for the incompressible problem, - /// using the two-point flux approximation discretization. - /// The third argument which corresponds to gravity is set to - /// zero (no gravity). + /// using the two-point flux approximation discretization. The + /// third argument which corresponds to gravity is set to a null + /// pointer (no gravity). The final argument would be a pointer to + /// a Wells data structure, again we use a null pointer to + /// indicate that we have no wells. /// \code - Opm::IncompTpfa psolver(*grid.c_grid(), &permeability[0], 0, linsolver); + Opm::IncompTpfa psolver(*grid.c_grid(), &permeability[0], 0, linsolver, 0); /// \endcode /// \page tutorial2 /// We define the source term. diff --git a/tutorials/tutorial3.cpp b/tutorials/tutorial3.cpp index fc15ab30d..f3a2e77c4 100644 --- a/tutorials/tutorial3.cpp +++ b/tutorials/tutorial3.cpp @@ -164,10 +164,11 @@ int main () /// \page tutorial3 /// \details We may now set up the pressure solver. At this point, /// unchanging parameters such as transmissibility are computed - /// and stored internally by the IncompTpfa class. + /// and stored internally by the IncompTpfa class. The final (null pointer) + /// constructor argument is for wells, which are now used in this tutorial. /// \code LinearSolverUmfpack linsolver; - IncompTpfa psolver(grid, props.permeability(), grav, linsolver); + IncompTpfa psolver(grid, props.permeability(), grav, linsolver, 0); /// \endcode /// \page tutorial3