flow_ebos: fix a memory error in the fluid in place code

as usual for such errors, this was found using valgrind.
This commit is contained in:
Andreas Lauser 2016-11-14 19:49:33 +01:00
parent 293f7ca1c7
commit e1178455a2

View File

@ -633,7 +633,7 @@ protected:
std::vector<double> FIPTotals(const std::vector<std::vector<double>>& fip, const ReservoirState& state)
{
std::vector<double> totals(6,0.0);
std::vector<double> totals(7,0.0);
for (int i = 0; i < 5; ++i) {
for (size_t reg = 0; reg < fip.size(); ++reg) {
totals[i] += fip[reg][i];