WARPXM v1.10.0
Loading...
Searching...
No Matches
multiplier.h
Go to the documentation of this file.
1#ifndef wmapplication_arbitrary_multiplier_h
2#define wmapplication_arbitrary_multiplier_h
3
4// WARPXM includes
6
7namespace wxm
8{
9namespace apps
10{
11namespace functions
12{
13namespace arbitrary
14{
15
17{
18public:
24
29 ~Multiplier() override;
30
35 void setup(const WxCryptSet& wxc) override;
36
37
44 const std::vector<int>& getInputVariableIndexes(int flag) const override
45 {
46 return _variables;
47 }
48
49
56 const std::vector<int>& getOutputVariableIndexes(int flag) const override
57 {
58 return _variables;
59 }
60
68 void evaluate_function(const real* q,
69 const real* aux,
70 const solverVariables_t* pSV,
71 real* result) const override;
72
73protected:
74 std::vector<int> _variables;
75
76 // The value to be set to
78
79 // Number of arguments that this class is designed to set
81
82private:
83 Multiplier& operator=(const Multiplier& var);
84 Multiplier(const Multiplier& var);
85};
86} // namespace arbitrary
87} // namespace functions
88} // namespace apps
89} // namespace wxm
90
91#endif
Base Class for physics applications.
Definition: wmapplication.h:93
Class WxAny is based on the "any" class described in "Valued Conversion", Kevlin Henney,...
Definition: wxany.h:139
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
WxAny _multiplier
Definition: multiplier.h:77
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
std::vector< int > _variables
Definition: multiplier.h:74
int _num_args
Definition: multiplier.h:80
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices Here the input is going to be multiplied and output.
Definition: multiplier.h:44
void setup(const WxCryptSet &wxc) override
Setup.
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices Here the input is going to be multiplied and output.
Definition: multiplier.h:56
list apps
Definition: shock_tube.py:33
Base namespace for everything not included in the global namespace.
Definition: field_source.h:8
Definition: wmapplication.h:38
#define real
Definition: wmoclunstructuredreconstruction.h:11