Skip to content
Snippets Groups Projects
Commit d51dc906 authored by Christian Engwer's avatar Christian Engwer
Browse files

only add MPI_Comm specialization if MPI is used

[[Imported from SVN: r5950]]
parent 2db58cfd
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,8 @@ namespace Dune
virtual int size() { return comm.size(); };
virtual int sum(int i) { return comm.sum(i); }
};
#if HAVE_MPI
// specialization for MPI_Comm
template <>
struct GenericGuardCommunicator<MPI_Comm>
......@@ -58,6 +60,7 @@ namespace Dune
GenericGuardCommunicator< CollectiveCommunication<MPI_Comm> >(
CollectiveCommunication<MPI_Comm>(c)) {}
};
#endif
template<class C>
GuardCommunicator * GuardCommunicator::create(const C & comm)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment