mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Avoid collective copyParValues() call in serial run.
This commit is contained in:
parent
e1dd2bf148
commit
961a5fa482
@ -265,7 +265,9 @@ std::unique_ptr<Matrix> blockJacobiAdjacency(const Grid& grid,
|
|||||||
#if HAVE_MPI
|
#if HAVE_MPI
|
||||||
if (firstcall) {
|
if (firstcall) {
|
||||||
const std::size_t size = M.N();
|
const std::size_t size = M.N();
|
||||||
detail::copyParValues(parallelInformation_, size, *comm_);
|
if (isParallel()) {
|
||||||
|
detail::copyParValues(parallelInformation_, size, *comm_);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user