Avoid collective copyParValues() call in serial run.

This commit is contained in:
Atgeirr Flø Rasmussen 2023-08-23 08:12:21 +02:00
parent e1dd2bf148
commit 961a5fa482

View File

@ -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