mirror of
https://github.com/triqs/dft_tools
synced 2024-12-26 06:14:14 +01:00
utility/mpi: forgot 2 inlines
This commit is contained in:
parent
8be0c208c2
commit
c1fa2c75de
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user