Fixed a warning, adjusted the tutorial to reflect the new solver interfacd

This commit is contained in:
Kjetil Olsen Lye 2012-04-13 13:41:23 +02:00
parent 47dc72812b
commit f8b3a8c3f9
2 changed files with 10 additions and 2 deletions

View File

@ -1467,7 +1467,7 @@ struct WCONPROD : public SpecialBase
double_data[7] = wconprod_line.VFP_table_number_;
double_data[8] = wconprod_line.artif_lift_quantity_;
const int num_to_read = 9;
int num_read = readDefaultedVectorData(is, double_data, num_to_read);
readDefaultedVectorData(is, double_data, num_to_read);
wconprod_line.oil_max_rate_ = double_data[0];
wconprod_line.water_max_rate_ = double_data[1];
wconprod_line.gas_max_rate_ = double_data[2];

View File

@ -141,11 +141,19 @@ int main()
/// \code
std::vector<double> omega;
/// \endcode
/// \page tutorial2
/// \details
/// We declare the wdp term which is required by the pressure solver (see
/// Opm::IncompTpfa.solve()). In the absence of wells, an empty vector is required.
/// \code
std::vector<double> wdp;
/// \endcode
/// \page tutorial2
/// We call the pressure solver.
/// \code
psolver.solve(mob, omega, src, bcs.c_bcs(),
psolver.solve(mob, omega, src, wdp, bcs.c_bcs(),
pressure, faceflux, well_bhp, well_flux);
/// \endcode