Merge pull request #1006 from blattms/ebos-fip-global-sum

Added missing global sum for FIP totals.
This commit is contained in:
Atgeirr Flø Rasmussen
2017-01-09 17:04:50 +01:00
committed by GitHub

View File

@@ -672,6 +672,10 @@ protected:
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
OPM_THROW(std::logic_error, "Requested a parallel run without MPI available!");
#endif