aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/dist.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@aei.mpg.de>2005-08-25 08:43:00 +0000
committerErik Schnetter <schnetter@aei.mpg.de>2005-08-25 08:43:00 +0000
commitfb3ace60d7261240317ab3bc8a60955d768c8819 (patch)
treef747d0fdd53c68eadd1433547156096ae28d201b /Carpet/CarpetLib/src/dist.cc
parent4284f4564a02c743863a3e3bb67e7346a99f68e7 (diff)
CarpetLib: Initialise Carpet's MPI communicator with an arbitrary communicator
Initialise Carpet's MPI communicator not with MPI_COMM_WORLD, but with a communicator that is passed in. darcs-hash:20050825084335-891bb-38744ff9cbfb5349e34676897dba3356ef7e462e.gz
Diffstat (limited to 'Carpet/CarpetLib/src/dist.cc')
-rw-r--r--Carpet/CarpetLib/src/dist.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/dist.cc b/Carpet/CarpetLib/src/dist.cc
index 353f4929b..7bb09c0ae 100644
--- a/Carpet/CarpetLib/src/dist.cc
+++ b/Carpet/CarpetLib/src/dist.cc
@@ -29,11 +29,11 @@ namespace dist {
void init (int& argc, char**& argv) {
MPI_Init (&argc, &argv);
- pseudoinit();
+ pseudoinit (MPI_COMM_WORLD);
}
- void pseudoinit () {
- comm = MPI_COMM_WORLD;
+ void pseudoinit (MPI_Comm const c) {
+ comm = c;
#if 0
MPI_Type_contiguous (2, MPI_FLOAT, &mpi_complex_float);