mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 17:02:02 -05:00
Bugfix parallel computation of weighted pressure etc.
This commit is contained in:
1 parent
8ff349253c
commit
68f1cff930
1 file changed
+3
-3
@@ -2486,6 +2486,9 @@ namespace detail {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
comm.sum(hcpv.data(), hcpv.size());
|
||||||
|
comm.sum(pres.data(), pres.size());
|
||||||
|
|
||||||
sd_.fip[SimulatorData::FIP_PV] = V::Zero(nc);
|
sd_.fip[SimulatorData::FIP_PV] = V::Zero(nc);
|
||||||
sd_.fip[SimulatorData::FIP_WEIGHTED_PRESSURE] = V::Zero(nc);
|
sd_.fip[SimulatorData::FIP_WEIGHTED_PRESSURE] = V::Zero(nc);
|
||||||
|
|
||||||
@@ -2512,9 +2515,6 @@ namespace detail {
|
|||||||
{
|
{
|
||||||
comm.sum(values[reg].data(), values[reg].size());
|
comm.sum(values[reg].data(), values[reg].size());
|
||||||
}
|
}
|
||||||
|
|
||||||
comm.sum(hcpv.data(), hcpv.size());
|
|
||||||
comm.sum(pres.data(), pres.size());
|
|
||||||
#else
|
#else
|
||||||
// This should never happen!
|
// This should never happen!
|
||||||
OPM_THROW(std::logic_error, "HAVE_MPI should be defined if we are running in parallel");
|
OPM_THROW(std::logic_error, "HAVE_MPI should be defined if we are running in parallel");
|
||||||
|
|||||||
Reference in new issue
Block a user