Give a name to the porosity

Mostly one would assume that this would be the porosity since that's the
only non-named argument, but stating this explicitly saves us from one
trip to the manual.
This commit is contained in:
Roland Kaufmann 2013-06-28 12:48:57 +02:00
parent 616a92cf80
commit 84bfc4be27

View File

@ -105,8 +105,9 @@ int main()
/// We set up a simple property object for a single-phase situation.
/// \snippet tutorial2.cpp single-phase property
/// \internal [single-phase property]
const double phi = 1.; // porosity
Opm::IncompPropertiesBasic props(1, Opm::SaturationPropsBasic::Constant, rho,
mu, 1.0, k, dim, num_cells);
mu, phi, k, dim, num_cells);
/// \internal [single-phase property]
/// /endinternal