mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #1006 from blattms/ebos-fip-global-sum
Added missing global sum for FIP totals.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user