Added missing global sum for FIP totals.

This commit is contained in:
Markus Blatt
2017-01-09 15:55:39 +01:00
parent c292dd4975
commit 7c91be92a9

View File

@@ -672,6 +672,10 @@ protected:
p_pv_hydrocarbon_sum += p * pv[cellIdx] * hydrocarbon; p_pv_hydrocarbon_sum += p * pv[cellIdx] * hydrocarbon;
} }
} }
totals[5] = pinfo.communicator().sum(totals[5]);
pv_hydrocarbon_sum = pinfo.communicator().sum(pv_hydrocarbon_sum);
p_pv_hydrocarbon_sum= pinfo.communicator().sum(p_pv_hydrocarbon_sum);
#else #else
OPM_THROW(std::logic_error, "Requested a parallel run without MPI available!"); OPM_THROW(std::logic_error, "Requested a parallel run without MPI available!");
#endif #endif