1#ifndef included_AMP_Map1Dto3D
2#define included_AMP_Map1Dto3D
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"
29 explicit Map1Dto3D( std::shared_ptr<const OperatorParameters> params );
35 std::string
type()
const override {
return "Map1Dto3D"; }
41 void reset( std::shared_ptr<const OperatorParameters> )
override;
95 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
void computeZNodeLocations()
This function is used to compute 1D locations from the output vector.
const auto & getZLocations()
This function returns the 1D locations stl vector.
void setZLocations(const std::vector< double > &z)
std::shared_ptr< AMP::LinearAlgebra::Vector > outputVec
std::shared_ptr< AMP::LinearAlgebra::Variable > d_outVariable
virtual ~Map1Dto3D()
De-constructor.
void apply(AMP::LinearAlgebra::Vector::const_shared_ptr u, AMP::LinearAlgebra::Vector::shared_ptr r) override
void apply_Nodal(AMP::LinearAlgebra::Vector::const_shared_ptr u, AMP::LinearAlgebra::Vector::shared_ptr f)
Discretization::createLibmeshElements libmeshElements
std::string type() const override
Return the name of the operator.
Map1Dto3D(std::shared_ptr< const OperatorParameters > params)
Default Constructor.
void setVector(AMP::LinearAlgebra::Vector::shared_ptr vec)
void reset(std::shared_ptr< const OperatorParameters >) override
std::shared_ptr< AMP::LinearAlgebra::Variable > d_inpVariable
void computeZGaussLocations()
std::shared_ptr< AMP::LinearAlgebra::Variable > getInputVariable() const override
Return the input variable.
size_t getNumZlocations()
This function returns the number of 1D locations.
void apply_Gauss(AMP::LinearAlgebra::Vector::const_shared_ptr u, AMP::LinearAlgebra::Vector::shared_ptr f)
std::vector< double > d_zLocations
std::shared_ptr< AMP::LinearAlgebra::Variable > getOutputVariable() const override
Return the output variable.
std::shared_ptr< AMP::Operator::Operator > shared_ptr