Advanced Multi-Physics (AMP)
On-Line Documentation
MassMatrixCorrection.h
Go to the documentation of this file.
1#ifndef included_AMP_MassMatrixCorrection
2#define included_AMP_MassMatrixCorrection
3
4#include "AMP/operators/boundary/BoundaryOperator.h"
5#include "AMP/operators/boundary/DirichletMatrixCorrectionParameters.h"
6#include "AMP/vectors/Variable.h"
7
8
9namespace AMP::Operator {
10
11
13
14
23{
24public:
26 explicit MassMatrixCorrection( std::shared_ptr<const OperatorParameters> params );
27
30
32 std::string type() const override { return "MassMatrixCorrection"; }
33
37 void setVariable( const std::shared_ptr<AMP::LinearAlgebra::Variable> &var )
38 {
40 }
41
47
48 void resetBoundaryIds( std::shared_ptr<const MassMatrixCorrectionParameters> );
49
55 void reset( std::shared_ptr<const OperatorParameters> ) override;
56
57protected:
58 // This must be a simple variable not a dual or multivariable
59 std::shared_ptr<AMP::LinearAlgebra::Variable> d_variable;
60
62
63 std::vector<short int> d_boundaryIds;
64
65 std::vector<std::vector<unsigned int>> d_dofIds;
66
67
68private:
69};
70} // namespace AMP::Operator
71
72#endif
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.
Definition Vector.h:60
std::shared_ptr< const Vector > const_shared_ptr
Definition Vector.h:65
void apply(AMP::LinearAlgebra::Vector::const_shared_ptr, AMP::LinearAlgebra::Vector::shared_ptr) override
MassMatrixCorrection(std::shared_ptr< const OperatorParameters > params)
Constructor.
std::string type() const override
Return the name of the operator.
void resetBoundaryIds(std::shared_ptr< const MassMatrixCorrectionParameters >)
std::shared_ptr< AMP::LinearAlgebra::Variable > d_variable
void reset(std::shared_ptr< const OperatorParameters >) override
void setVariable(const std::shared_ptr< AMP::LinearAlgebra::Variable > &var)
std::vector< std::vector< unsigned int > > d_dofIds
std::shared_ptr< AMP::Operator::Operator > shared_ptr
Definition Operator.h:29
DirichletMatrixCorrectionParameters MassMatrixCorrectionParameters



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page