Advanced Multi-Physics (AMP)
On-Line Documentation
VectorCopyOperator.h
Go to the documentation of this file.
1#ifndef included_AMP_VectorCopyOperator
2#define included_AMP_VectorCopyOperator
3
4#include "AMP/operators/Operator.h"
5#include "AMP/operators/VectorCopyOperatorParameters.h"
6#include "AMP/vectors/Vector.h"
7#include <memory>
8
9namespace AMP::Operator {
10
12{
13public:
14 explicit VectorCopyOperator( std::shared_ptr<const VectorCopyOperatorParameters> params );
15
17
18 std::string type() const override { return "VectorCopyOperator"; }
19
22
23 std::shared_ptr<AMP::LinearAlgebra::Variable> getOutputVariable() const override;
24
25 std::shared_ptr<AMP::LinearAlgebra::Variable> getInputVariable() const override;
26
27private:
28 // vector to copy into
29 std::shared_ptr<AMP::LinearAlgebra::Vector> d_copyVector;
30 std::shared_ptr<AMP::LinearAlgebra::Variable> d_copyVariable;
31};
32
33} // namespace AMP::Operator
34
35#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
std::shared_ptr< AMP::Operator::Operator > shared_ptr
Definition Operator.h:29
std::shared_ptr< AMP::LinearAlgebra::Vector > d_copyVector
std::shared_ptr< AMP::LinearAlgebra::Variable > getInputVariable() const override
Return the input variable.
virtual void apply(AMP::LinearAlgebra::Vector::const_shared_ptr u, AMP::LinearAlgebra::Vector::shared_ptr f) override
std::string type() const override
Return the name of the operator.
VectorCopyOperator(std::shared_ptr< const VectorCopyOperatorParameters > params)
std::shared_ptr< AMP::LinearAlgebra::Variable > getOutputVariable() const override
Return the output variable.
std::shared_ptr< AMP::LinearAlgebra::Variable > d_copyVariable



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