Bugfix: corrected computation of polymer contained in reservoir.

This commit is contained in:
Atgeirr Flø Rasmussen 2012-03-14 21:12:54 +01:00
parent 1554bfff11
commit b120aa6c90

View File

@ -181,7 +181,7 @@ namespace Opm
} }
double polymass = 0.0; double polymass = 0.0;
for (int cell = 0; cell < num_cells; ++cell) { for (int cell = 0; cell < num_cells; ++cell) {
polymass += c[cell]*pv[cell]*s[np*cell + 0]*(1.0 - dps); polymass += c[cell]*pv[cell]*(s[np*cell + 0] - dps);
} }
return polymass; return polymass;
} }