3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 22:03:43 +01:00

utility/mpi: forgot 2 inlines

This commit is contained in:
Olivier Parcollet 2013-10-31 14:59:49 +01:00
parent 8be0c208c2
commit c1fa2c75de

View File

@ -35,7 +35,7 @@ namespace triqs { namespace mpi {
#undef D #undef D
// ok that is simple ... // ok that is simple ...
void barrier(communicator _c) { MPI_Barrier(_c);} inline void barrier(communicator _c) { MPI_Barrier(_c);}
// a struct to specialize for the implementation for various types... // a struct to specialize for the implementation for various types...
template<typename T, typename Enable=void> struct mpi_impl; template<typename T, typename Enable=void> struct mpi_impl;
@ -47,7 +47,7 @@ namespace triqs { namespace mpi {
// reduce : first the in_place version // reduce : first the in_place version
template<typename T> void reduce_in_place(communicator _c, T & a, int root=0) { mpi_impl<T>::reduce_in_place(_c,a,root); } template<typename T> void reduce_in_place(communicator _c, T & a, int root=0) { mpi_impl<T>::reduce_in_place(_c,a,root); }
void reduce_in_place_v(communicator _c) {} inline void reduce_in_place_v(communicator _c) {}
// try a variadic one. Does not cost much more to code... // try a variadic one. Does not cost much more to code...
template<typename T0, typename ... T> void reduce_in_place_v(communicator _c, T0 & a0, T& ... a) { template<typename T0, typename ... T> void reduce_in_place_v(communicator _c, T0 & a0, T& ... a) {