Dune Core Modules (2.3.1)

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// $Id$
4#ifndef DUNE_AMG_PINFO_HH
5#define DUNE_AMG_PINFO_HH
6
9
10#if HAVE_MPI
11
17
18#endif
19
20#include <dune/istl/solvercategory.hh>
21namespace Dune
22{
23 namespace Amg
24 {
25
26 class SequentialInformation
27 {
28 public:
29 typedef CollectiveCommunication<void*> MPICommunicator;
30 typedef EmptySet<int> CopyFlags;
31 typedef AllSet<int> OwnerSet;
32
33 enum {
35 };
36
37 const SolverCategory::Category getSolverCategory () const {
39 }
40
41 MPICommunicator communicator() const
42 {
43 return comm_;
44 }
45
46 int procs() const
47 {
48 return 1;
49 }
50
51 template<typename T>
52 T globalSum(const T& t) const
53 {
54 return t;
55 }
56
57 typedef int GlobalLookupIndexSet;
58
59 void buildGlobalLookup(std::size_t){}
60
61 void freeGlobalLookup(){}
62
63 const GlobalLookupIndexSet& globalLookup() const
64 {
65 return gli;
66 }
67
68 template<class V>
69 void copyOwnerToAll(V& v, V& v1) const
70 {
73 }
74
75 template<class V>
76 void project(V& v) const
77 {
79 }
80
81 template<class T>
82 SequentialInformation(const CollectiveCommunication<T>&)
83 {}
84
85 SequentialInformation()
86 {}
87
88 SequentialInformation(const SequentialInformation&)
89 {}
90 private:
91 MPICommunicator comm_;
92 GlobalLookupIndexSet gli;
93 };
94
95
96 } // namespace Amg
97} //namespace Dune
98#endif
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.
Dune namespace.
Definition: alignment.hh:14
Implements an utility class that provides collective communication methods for sequential programs.
Implements an utility class that provides MPI's collective communication methods.
Traits classes for mapping types onto MPI_Datatype.
Classes describing a distributed indexset.
Category
Definition: solvercategory.hh:20
@ sequential
Category for sequential solvers.
Definition: solvercategory.hh:22
#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 (Jul 15, 22:36, 2024)