summaryrefslogtreecommitdiff
path: root/libs/mpi/src/python/module.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2013-06-25 22:59:01 +0000
committer <>2013-09-27 11:49:28 +0000
commit8c4528713d907ee2cfd3bfcbbad272c749867f84 (patch)
treec09e2ce80f47b90c85cc720f5139089ad9c8cfff /libs/mpi/src/python/module.cpp
downloadboost-tarball-baserock/morph.tar.gz
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_54_0.tar.bz2.boost_1_54_0baserock/morph
Diffstat (limited to 'libs/mpi/src/python/module.cpp')
-rw-r--r--libs/mpi/src/python/module.cpp55
1 files changed, 55 insertions, 0 deletions
diff --git a/libs/mpi/src/python/module.cpp b/libs/mpi/src/python/module.cpp
new file mode 100644
index 000000000..5e27e88ca
--- /dev/null
+++ b/libs/mpi/src/python/module.cpp
@@ -0,0 +1,55 @@
+// (C) Copyright 2006 Douglas Gregor <doug.gregor -at- gmail.com>
+
+// Use, modification and distribution is subject to the Boost Software
+// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+// Authors: Douglas Gregor
+
+/** @file module.cpp
+ *
+ * This file provides the top-level module for the Boost.MPI Python
+ * bindings.
+ */
+#include <boost/python.hpp>
+#include <boost/mpi.hpp>
+
+using namespace boost::python;
+using namespace boost::mpi;
+
+namespace boost { namespace mpi { namespace python {
+
+extern void export_environment();
+extern void export_exception();
+extern void export_collectives();
+extern void export_communicator();
+extern void export_datatypes();
+extern void export_request();
+extern void export_status();
+extern void export_timer();
+extern void export_nonblocking();
+
+extern const char* module_docstring;
+
+BOOST_PYTHON_MODULE(mpi)
+{
+ // Setup module documentation
+ scope().attr("__doc__") = module_docstring;
+ scope().attr("__author__") = "Douglas Gregor <doug.gregor@gmail.com>";
+ scope().attr("__date__") = "$LastChangedDate: 2008-06-26 12:25:44 -0700 (Thu, 26 Jun 2008) $";
+ scope().attr("__version__") = "$Revision: 46743 $";
+ scope().attr("__copyright__") = "Copyright (C) 2006 Douglas Gregor";
+ scope().attr("__license__") = "http://www.boost.org/LICENSE_1_0.txt";
+
+ export_environment();
+ export_exception();
+ export_communicator();
+ export_collectives();
+ export_datatypes();
+ export_request();
+ export_status();
+ export_timer();
+ export_nonblocking();
+}
+
+} } } // end namespace boost::mpi::python