My Project
|
Adapter to combine a matrix and another linear operator into a combined linear operator. More...
#include <WellOperators.hpp>
Public Types | |
typedef M | matrix_type |
typedef X | domain_type |
typedef Y | range_type |
typedef X::field_type | field_type |
using | PressureMatrix = Dune::BCRSMatrix< Opm::MatrixBlock< double, 1, 1 > > |
typedef Dune::CollectiveCommunication< int > | communication_type |
Public Member Functions | |
Dune::SolverCategory::Category | category () const override |
WellModelGhostLastMatrixAdapter (const M &A, const Opm::LinearOperatorExtra< X, Y > &wellOper, const size_t interiorSize) | |
constructor: just store a reference to a matrix | |
virtual void | apply (const X &x, Y &y) const override |
virtual void | applyscaleadd (field_type alpha, const X &x, Y &y) const override |
virtual const matrix_type & | getmat () const override |
void | addWellPressureEquations (PressureMatrix &jacobian, const X &weights, const bool use_well_weights) const |
void | addWellPressureEquationsStruct (PressureMatrix &jacobian) const |
int | getNumberOfExtraEquations () const |
Protected Member Functions | |
void | ghostLastProject (Y &y) const |
Protected Attributes | |
const matrix_type & | A_ |
const Opm::LinearOperatorExtra< X, Y > & | wellOper_ |
size_t | interiorSize_ |
Adapter to combine a matrix and another linear operator into a combined linear operator.
This is similar to WellModelMatrixAdapter, with the difference that here we assume a parallel ordering of rows, where ghost rows are located after interior rows.