Skip to content
Snippets Groups Projects
Commit 0ba99d23 authored by Markus Blatt's avatar Markus Blatt
Browse files

Make access to coresponding collective communication possible.

[[Imported from SVN: r5254]]
parent 670ffe7c
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,10 @@
#define DUNE_MPIHELPER
#include <cassert>
#include "collectivecommunication.hh"
#if HAVE_MPI
#include "mpi.h"
#include "mpicollectivecommunication.hh"
#endif
#include "stdstreams.hh"
......@@ -87,6 +89,12 @@ namespace Dune
return -1;
}
static CollectiveCommunication<MPICommunicator>
getCollectiveCommunication()
{
return CollectiveCommunication<MPICommunicator>(getCommunicator());
}
/**
* @brief Get the singleton instance of the helper.
*
......@@ -155,7 +163,11 @@ namespace Dune
static MPICommunicator getCommunicator(){
return MPI_COMM_WORLD;
}
static CollectiveCommunication<MPICommunicator>
getCollectiveCommunication()
{
return CollectiveCommunication<MPICommunicator>(getCommunicator());
}
/**
* @brief Get the singleton instance of the helper.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment