Merge pull request #918 from andlaus/frankenstein_fix_fip_valgrind_error

flow_ebos: fix a memory error in the fluid in place code
This commit is contained in:
Andreas Lauser 2016-11-14 19:52:37 +01:00 committed by GitHub
commit 38c4eeb667

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];