3#ifndef DUNE_AMG_PINFO_HH
4#define DUNE_AMG_PINFO_HH
19#include <dune/istl/solvercategory.hh>
25 class SequentialInformation
28 typedef CollectiveCommunication<void*> MPICommunicator;
29 typedef EmptySet<int> CopyFlags;
30 typedef AllSet<int> OwnerSet;
36 MPICommunicator communicator()
const
47 T globalSum(
const T& t)
const
52 typedef int GlobalLookupIndexSet;
54 void buildGlobalLookup(std::size_t){}
56 void freeGlobalLookup(){}
58 const GlobalLookupIndexSet& globalLookup()
const
64 void copyOwnerToAll(V& v, V& v1)
const
71 void project(V& v)
const
76 template<
class T1,
class T2>
77 void dot (
const T1& x,
const T1& y, T2& result)
const
79 assert(
false &&
"this function should never be called");
83 typename FieldTraits<typename T1::field_type>::real_type norm (
const T1& x)
const
85 assert(
false &&
"this function should never be called");
86 return typename FieldTraits<typename T1::field_type>::real_type(0);
90 SequentialInformation(
const CollectiveCommunication<T>&)
93 SequentialInformation()
96 SequentialInformation(
const SequentialInformation&)
99 MPICommunicator comm_;
100 GlobalLookupIndexSet gli;
Implements an utility class that provides collective communication methods for sequential programs.
Provides utility classes for syncing distributed data via MPI communication.
Provides classes for building the communication interface between remote indices.
Classes for building sets out of enumeration values.
auto dot(const A &a, const B &b) -> typename std::enable_if<!IsVector< A >::value &&!std::is_same< typename FieldTraits< A >::field_type, typename FieldTraits< A >::real_type > ::value, decltype(conj(a) *b)>::type
computes the dot product for fundamental data types according to Petsc's VectDot function: dot(a,...
Definition: dotproduct.hh:40
#define DUNE_UNUSED_PARAMETER(parm)
A macro to mark intentionally unused function parameters with.
Definition: unused.hh:25
Implements an utility class that provides MPI's collective communication methods.
Traits classes for mapping types onto MPI_Datatype.
Dune namespace.
Definition: alignedallocator.hh:10
Classes describing a distributed indexset.
Category
Definition: solvercategory.hh:21
@ sequential
Category for sequential solvers.
Definition: solvercategory.hh:23