Update of /cvsroot/boost/boost/boost/mpi/collectives
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2795/boost/mpi/collectives

Modified Files:
        gather.hpp 
Log Message:
Support graph topologies and fix a small bug in the gather collective

Index: gather.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/mpi/collectives/gather.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- gather.hpp  16 Feb 2007 21:01:24 -0000      1.2
+++ gather.hpp  1 Jun 2007 16:56:43 -0000       1.3
@@ -95,6 +95,13 @@
 }
 
 template<typename T>
+void gather(const communicator& comm, const T& in_value, int root)
+{
+  BOOST_ASSERT(comm.rank() != root);
+  detail::gather_impl(comm, &in_value, 1, root, is_mpi_datatype<T>());
+}
+
+template<typename T>
 void
 gather(const communicator& comm, const T& in_value, std::vector<T>& out_values,
        int root)
@@ -108,13 +115,6 @@
 }
 
 template<typename T>
-void gather(const communicator& comm, const T& in_value, int root)
-{
-  BOOST_ASSERT(comm.rank() != root);
-  detail::gather_impl(comm, &in_value, 1, root, is_mpi_datatype<T>());
-}
-
-template<typename T>
 void
 gather(const communicator& comm, const T* in_values, int n, T* out_values, 
        int root)


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to