Dune Core Modules (2.4.2)

pinfo.hh
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_AMG_PINFO_HH
4#define DUNE_AMG_PINFO_HH
5
8
9#if HAVE_MPI
10
16
17#endif
18
19#include <dune/istl/solvercategory.hh>
20namespace Dune
21{
22 namespace Amg
23 {
24
25 class SequentialInformation
26 {
27 public:
28 typedef CollectiveCommunication<void*> MPICommunicator;
29 typedef EmptySet<int> CopyFlags;
30 typedef AllSet<int> OwnerSet;
31
32 enum {
34 };
35
36 SolverCategory::Category getSolverCategory () const {
38 }
39
40 MPICommunicator communicator() const
41 {
42 return comm_;
43 }
44
45 int procs() const
46 {
47 return 1;
48 }
49
50 template<typename T>
51 T globalSum(const T& t) const
52 {
53 return t;
54 }
55
56 typedef int GlobalLookupIndexSet;
57
58 void buildGlobalLookup(std::size_t){}
59
60 void freeGlobalLookup(){}
61
62 const GlobalLookupIndexSet& globalLookup() const
63 {
64 return gli;
65 }
66
67 template<class V>
68 void copyOwnerToAll(V& v, V& v1) const
69 {
72 }
73
74 template<class V>
75 void project(V& v) const
76 {
78 }
79
80 template<class T>
81 SequentialInformation(const CollectiveCommunication<T>&)
82 {}
83
84 SequentialInformation()
85 {}
86
87 SequentialInformation(const SequentialInformation&)
88 {}
89 private:
90 MPICommunicator comm_;
91 GlobalLookupIndexSet gli;
92 };
93
94
95 } // namespace Amg
96} //namespace Dune
97#endif
Implements an utility class that provides collective communication methods for sequential programs.
Provides utility classes for syncing distributed data via MPI communication.
Classes for building sets out of enumeration values.
Provides classes for building the communication interface between remote indices.
Implements an utility class that provides MPI's collective communication methods.
Traits classes for mapping types onto MPI_Datatype.
Dune namespace.
Definition: alignment.hh:10
Classes describing a distributed indexset.
Category
Definition: solvercategory.hh:19
@ sequential
Category for sequential solvers.
Definition: solvercategory.hh:21
#define DUNE_UNUSED_PARAMETER(parm)
A macro to mark intentional unused function parameters with.
Definition: unused.hh:18
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)