mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-26 03:00:17 -06:00
Bugfix: corrected computation of polymer contained in reservoir.
This commit is contained in:
parent
1554bfff11
commit
b120aa6c90
@ -181,7 +181,7 @@ namespace Opm
|
||||
}
|
||||
double polymass = 0.0;
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user