Merge pull request #3682 from akva2/fix_serial_no_cast_op

fix serial build after PR #3675
This commit is contained in:
Bård Skaflestad 2021-11-10 11:13:16 +01:00 committed by GitHub
commit 2f71912978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,6 +385,7 @@ void variadic_unpack(int& pos, std::vector<char>& buffer, Parallel::Communicatio
variadic_unpack(pos, buffer, comm, std::forward<Args>(args)...);
}
#if HAVE_MPI
template<typename... Args>
void broadcast(Parallel::Communication comm, int root, Args&&... args)
{
@ -407,6 +408,11 @@ void broadcast(Parallel::Communication comm, int root, Args&&... args)
variadic_unpack(pos, buffer, comm, std::forward<Args>(args)...);
}
}
#else
template<typename... Args>
void broadcast(Parallel::Communication, int, Args&&...)
{}
#endif
} // end namespace Mpi