1#ifndef included_AMP_Map3Dto1D
2#define included_AMP_Map3Dto1D
5#include "AMP/discretization/createLibmeshElements.h"
6#include "AMP/operators/Operator.h"
7#include "AMP/operators/OperatorParameters.h"
8#include "AMP/operators/map/MapOperator.h"
9#include "AMP/operators/map/MapOperatorParameters.h"
10#include "AMP/vectors/Variable.h"
11#include "AMP/vectors/Vector.h"
27 explicit Map3Dto1D( std::shared_ptr<const OperatorParameters> params );
33 std::string
type()
const override {
return "Map3Dto1D"; }
39 void reset( std::shared_ptr<const OperatorParameters> )
override;
85 std::shared_ptr<AMP::LinearAlgebra::Vector>
outputVec =
nullptr;
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.
std::shared_ptr< const Vector > const_shared_ptr
std::shared_ptr< AMP::LinearAlgebra::Variable > getOutputVariable() const override
Return the output variable.
std::shared_ptr< AMP::LinearAlgebra::Variable > createInputVariable(const std::string &name, int=-1) override
std::shared_ptr< AMP::LinearAlgebra::Variable > d_inpVariable
std::shared_ptr< AMP::LinearAlgebra::Variable > createOutputVariable(const std::string &name, int=-1) override
std::shared_ptr< AMP::LinearAlgebra::Variable > getInputVariable() const override
Return the input variable.
void apply_Gauss(AMP::LinearAlgebra::Vector::const_shared_ptr u, AMP::LinearAlgebra::Vector::shared_ptr f)
std::shared_ptr< AMP::LinearAlgebra::Vector > outputVec
void makeZLocationsConsistent()
void apply_Nodal(AMP::LinearAlgebra::Vector::const_shared_ptr u, AMP::LinearAlgebra::Vector::shared_ptr f)
std::vector< double > d_zLocations
void reset(std::shared_ptr< const OperatorParameters >) override
virtual ~Map3Dto1D()
Destructor.
void setVector(AMP::LinearAlgebra::Vector::shared_ptr vec)
void setZLocations(const std::vector< double > &zloc)
Discretization::createLibmeshElements libmeshElements
std::string type() const override
Return the name of the operator.
void apply(AMP::LinearAlgebra::Vector::const_shared_ptr u, AMP::LinearAlgebra::Vector::shared_ptr f) override
std::shared_ptr< AMP::LinearAlgebra::Variable > d_outVariable
Map3Dto1D(std::shared_ptr< const OperatorParameters > params)
Constructor.
std::shared_ptr< AMP::Operator::Operator > shared_ptr