2#ifndef included_AMP_WeldOperator
3#define included_AMP_WeldOperator
5#include "AMP/utils/AMP_MPI.h"
6#include "AMP/utils/Database.h"
10#include "AMP/operators/Operator.h"
11#include "AMP/vectors/Variable.h"
12#include "AMP/vectors/Vector.h"
15#ifdef DEBUG_CHECK_ASSERTIONS
29 std::string
type()
const override {
return "WeldOperator"; }
31 virtual void reset( std::shared_ptr<const OperatorParameters> params ) { (
void) params; }
36 const double a = -1.0,
37 const double b = 1.0 )
64 std::shared_ptr<AMP::LinearAlgebra::Variable>
d_inpVar;
Provides C++ wrapper around MPI routines.
type bcast(const type &value, int root) const
Broadcast.
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.
std::shared_ptr< const Vector > const_shared_ptr
std::shared_ptr< AMP::Operator::Operator > shared_ptr
AMP::LinearAlgebra::Vector::shared_ptr d_outVec
virtual void apply(AMP::LinearAlgebra::Vector::const_shared_ptr f, AMP::LinearAlgebra::Vector::const_shared_ptr u, AMP::LinearAlgebra::Vector::shared_ptr r, const double a=-1.0, const double b=1.0)
std::string type() const override
Return the name of the operator.
virtual void reset(std::shared_ptr< const OperatorParameters > params)
WeldOperator(std::shared_ptr< const OperatorParameters > params)
std::shared_ptr< AMP::LinearAlgebra::Variable > d_inpVar
unsigned int d_inputBoundaryId
#define AMP_ASSERT(EXP)
Assert error.