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

does not matter for <int.int> but we switch names as the first

parameter is the global id. Additionally omit the second parameter as
it is not needed.

[[Imported from SVN: r1062]]
parent 1e920559
No related branches found
No related tags found
No related merge requests found
......@@ -168,7 +168,7 @@ namespace Dune {
*
* set up communication from known distribution with owner/overlap/copy semantics
*/
template <class GlobalIdType, class LocalIdType>
template <class GlobalIdType, class LocalIdType=int>
class OwnerOverlapCopyCommunication
{
// used types
......@@ -435,6 +435,17 @@ namespace Dune {
OwnerToAllInterfaceBuilt(false), OwnerOverlapToAllInterfaceBuilt(false), globalLookup_(0)
{}
/**
* @brief Construct the communication without any indices using MPI_COMM_WORLD.
*
* The local index set and the remote indices have to be set up
* later on.
*/
OwnerOverlapCopyCommunication ()
: cc(MPI_COMM_WORLD), pis(), ri(pis,pis,MPI_COMM_WORLD),
OwnerToAllInterfaceBuilt(false), OwnerOverlapToAllInterfaceBuilt(false), globalLookup_(0)
{}
/**
* @brief Constructor
* @param indexinfo The set of IndexTripels describing the local and remote indices.
......
......@@ -85,7 +85,7 @@ void testAmg(int N, int coarsenTarget)
typedef Dune::BlockVector<VectorBlock> Vector;
typedef int LocalId;
typedef int GlobalId;
typedef Dune::OwnerOverlapCopyCommunication<LocalId,GlobalId> Communication;
typedef Dune::OwnerOverlapCopyCommunication<GlobalId> Communication;
typedef Dune::OverlappingSchwarzOperator<BCRSMat,Vector,Vector,Communication> Operator;
int n;
......
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