12 #ifndef MORTAR_EVALUATOR_HPP_
13 #define MORTAR_EVALUATOR_HPP_
15 #include <dune/istl/matrixmatrix.hh>
16 #include <dune/istl/solvers.hh>
21 namespace Elasticity {
47 void apply(
const Vector& x, Vector& y)
const
54 l2.resize(lambda.size());
70 l2.resize(lambda.size());
72 for (
size_t i=
A.N(); i < y.size(); ++i)
73 y[i] += alpha*l2[i-
A.N()];
MortarEvaluator(const Matrix &A_, const Matrix &B_)
Constructor.
Definition: mortar_evaluator.hpp:38
Helper class with some matrix operations.
const Matrix & A
Reference to A matrix.
Definition: mortar_evaluator.hpp:76
const Matrix & B
Reference to the mortar coupling matrix.
Definition: mortar_evaluator.hpp:77
static void injectBlock(Vector &x, const Vector &y, int len, int start=0)
Inject a range of indices into a vector.
Definition: mortar_utils.hpp:36
void applyscaleadd(field_type alpha, const Vector &x, Vector &y) const
Apply the multiplier block with an embedded axpy.
Definition: mortar_evaluator.hpp:63
static void extractBlock(Vector &x, const Vector &y, int len, int start=0)
Extract a range of indices from a vector.
Definition: mortar_utils.hpp:25
void apply(const Vector &x, Vector &y) const
Apply the multiplier block.
Definition: mortar_evaluator.hpp:47
The category the preconditioner is part of.
Definition: mortar_evaluator.hpp:32
This implements a operator evaluation for the schur mortar-block S = B^T*A^-1*B ! ...
Definition: mortar_evaluator.hpp:27