mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-23 16:00:01 -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 (firstcall) {
|
||||
const std::size_t size = M.N();
|
||||
detail::copyParValues(parallelInformation_, size, *comm_);
|
||||
if (isParallel()) {
|
||||
detail::copyParValues(parallelInformation_, size, *comm_);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user