mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-04 13:36:57 -06:00
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:
parent
293f7ca1c7
commit
e1178455a2
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user