mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-01 21:39:09 -06:00
Merge pull request #3682 from akva2/fix_serial_no_cast_op
fix serial build after PR #3675
This commit is contained in:
commit
2f71912978
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user