Dune Core Modules (2.6.0)
scalarproducts.hh
Go to the documentation of this file.
68 DUNE_THROW(Dune::Exception,"It is necessary to implement the category method in a derived classes, in the future this method will pure virtual.");
259 std::shared_ptr<ScalarProduct<X>> createScalarProduct(const Comm& comm, SolverCategory::Category category)
This file implements a vector space as a tensor product of a given vector space. The number of compon...
Default exception if a function was called while the object is not in a valid state for that function...
Definition: exceptions.hh:279
Nonoverlapping Scalar Product with communication object.
Definition: scalarproducts.hh:124
virtual SolverCategory::Category category() const
Category of the scalar product (see SolverCategory::Category)
Definition: scalarproducts.hh:163
FieldTraits< field_type >::real_type real_type
The real-type of the range.
Definition: scalarproducts.hh:131
X domain_type
The type of the domain.
Definition: scalarproducts.hh:127
X::field_type field_type
The type of the range.
Definition: scalarproducts.hh:129
C communication_type
The type of the communication object.
Definition: scalarproducts.hh:133
virtual real_type norm(const X &x)
Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.
Definition: scalarproducts.hh:157
void make_consistent(X &x) const
make additive vector consistent
Definition: scalarproducts.hh:170
virtual field_type dot(const X &x, const X &y)
Dot product of two vectors. It is assumed that the vectors are consistent on the interior+border part...
Definition: scalarproducts.hh:147
NonoverlappingSchwarzScalarProduct(const communication_type &com)
Constructor.
Definition: scalarproducts.hh:139
Scalar product for overlapping schwarz methods.
Definition: scalarproducts.hh:192
C communication_type
The type of the communication object.
Definition: scalarproducts.hh:206
virtual real_type norm(const X &x)
Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.
Definition: scalarproducts.hh:230
virtual SolverCategory::Category category() const
Category of the scalar product (see SolverCategory::Category)
Definition: scalarproducts.hh:236
virtual field_type dot(const X &x, const X &y)
Dot product of two vectors. It is assumed that the vectors are consistent on the interior+border part...
Definition: scalarproducts.hh:220
X domain_type
The type of the vector to compute the scalar product on.
Definition: scalarproducts.hh:198
X::field_type field_type
The field type used by the vector type domain_type.
Definition: scalarproducts.hh:200
OverlappingSchwarzScalarProduct(const communication_type &com)
Constructor needs to know the grid.
Definition: scalarproducts.hh:212
Base class for scalar product and norm computation.
Definition: scalarproducts.hh:46
virtual field_type dot(const X &x, const X &y)=0
Dot product of two vectors. It is assumed that the vectors are consistent on the interior+border part...
X domain_type
export types, they come from the derived class
Definition: scalarproducts.hh:49
virtual SolverCategory::Category category() const =0
Category of the scalar product (see SolverCategory::Category)
virtual ~ScalarProduct()
every abstract base class has a virtual destructor
Definition: scalarproducts.hh:75
virtual real_type norm(const X &x)=0
Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.
virtual SolverCategory::Category category() const
Category of the scalar product (see SolverCategory::Category)
Definition: scalarproducts.hh:110
virtual real_type norm(const X &x)
Norm of a right-hand side vector. The vector must be consistent on the interior+border partition.
Definition: scalarproducts.hh:104
virtual field_type dot(const X &x, const X &y)
Dot product of two vectors. In the complex case, the first argument is conjugated....
Definition: scalarproducts.hh:96
A few common exception classes.
std::shared_ptr< ScalarProduct< X > > createScalarProduct(const Comm &comm, SolverCategory::Category category)
Choose the approriate scalar product for a solver category.
Definition: scalarproducts.hh:259
@ sequential
Category for sequential solvers.
Definition: solvercategory.hh:23
@ nonoverlapping
Category for non-overlapping solvers.
Definition: solvercategory.hh:25
@ overlapping
Category for overlapping solvers.
Definition: solvercategory.hh:27
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 26, 23:30, 2024)