3#ifndef DUNE_AMGTRANSFER_HH
4#define DUNE_AMGTRANSFER_HH
11#include <dune/common/exceptions.hh>
28 template<
class V1,
class V2,
class T>
36 template<
typename T1,
typename R>
38 Vector& fineRedist,T1 damp, R& redistributor=R());
40 template<
typename T1,
typename R>
48 template<
class V,
class V1>
57 Vector& fineRedist, T1 damp,
72 template<
class V,
class V1,
class T1,
class T2>
93 template<
class V,
class V1>
98 [[maybe_unused]]
Vector& fineRedist,
101 [[maybe_unused]]
const Redist& redist)
103 prolongateVector(aggregates, coarse, fine, damp);
105 template<
class V,
class V1>
113 typedef typename Vector::iterator Iterator;
115 Iterator end = coarse.end();
116 Iterator begin= coarse.begin();
117 for(; begin!=end; ++begin)
122 for(Iterator block=begin; block != end; ++block) {
123 std::ptrdiff_t index=block-begin;
124 const Vertex& vertex = aggregates[index];
126 *block += coarse[aggregates[index]];
130 template<
class V,
class V1>
140 typedef typename Vector::const_iterator Iterator;
141 Iterator end = fine.end();
142 Iterator begin=fine.begin();
144 for(Iterator block=begin; block != end; ++block) {
145 const Vertex& vertex = aggregates[block-begin];
147 coarse[vertex] += *block;
152 template<
class V,
class V1,
class T1,
class T2>
153 template<
typename T3>
156 Vector& fineRedist, T3 damp,
160 if(fineRedist.size()>0)
169 template<
class V,
class V1,
class T1,
class T2>
170 template<
typename T3>
178 template<
class V,
class V1,
class T1,
class T2>
Provides classes for the Coloring process of AMG.
This file implements a vector space as a tensor product of a given vector space. The number of compon...
Classes providing communication interfaces for overlapping Schwarz methods.
Functionality for redistributing a sparse matrix.
Definition: allocator.hh:9
Definition: matrixredistribute.hh:20
void redistributeBackward(D &from, const D &to) const
Definition: matrixredistribute.hh:30
A class setting up standard communication for a two-valued attribute set with owner/overlap/copy sema...
Definition: owneroverlapcopy.hh:172
void project(T1 &x) const
Set vector to zero at copy dofs.
Definition: owneroverlapcopy.hh:536
void copyOwnerToAll(const T &source, T &dest) const
Communicate values from owner data points to all other data points.
Definition: owneroverlapcopy.hh:309
Class providing information about the mapping of the vertices onto aggregates.
Definition: aggregates.hh:558
Definition: transfer.hh:30
static void restrictVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, const Vector &fine, T &comm)
static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, Vector &fine, T1 damp)
static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, Vector &fine, Vector &fineRedist, T1 damp, R &redistributor=R())
V1 Vertex
Definition: transfer.hh:33
V2 Vector
Definition: transfer.hh:34
RedistributeInformation< SequentialInformation > Redist
Definition: transfer.hh:54
V Vertex
Definition: transfer.hh:52
V1 Vector
Definition: transfer.hh:53
static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, Vector &fine, Vector &fineRedist, T1 damp, const SequentialInformation &comm=SequentialInformation(), const Redist &redist=Redist())
static void prolongateVector(const AggregatesMap< Vertex > &aggregates, Vector &coarse, Vector &fine, T1 damp, const SequentialInformation &comm=SequentialInformation())
V Vertex
Definition: transfer.hh:76
RedistributeInformation< OwnerOverlapCopyCommunication< T1, T2 > > Redist
Definition: transfer.hh:78
V1 Vector
Definition: transfer.hh:77