WARPXM v1.10.0
Loading...
Searching...
No Matches
general_source.h
Go to the documentation of this file.
1#pragma once
2
3// wxm includes
5
6namespace wxm
7{
8namespace apps
9{
10namespace five_moment
11{
12
14{
15public:
17
18 ~GeneralSource() override;
19
20 void setup(const WxCryptSet& wxc) override;
21
22 const std::vector<int>& getInputVariableIndexes(int flag) const override
23 {
24 return _input_variables;
25 }
26
27 const std::vector<int>& getOutputVariableIndexes(int flag) const override
28 {
29 return _input_variables;
30 }
31
32 real source(const real* q,
33 const real* aux,
34 const elementGeometry_t* pEG,
35 real* source) const override;
36
37protected:
38 std::vector<real> _params;
40 std::vector<int> _input_variables;
41
42private:
43 GeneralSource& operator=(const GeneralSource& var);
44 GeneralSource(const GeneralSource& var);
45};
46} // namespace five_moment
47} // namespace apps
48} // namespace wxm
Base Class for physics applications.
Definition: wmapplication.h:93
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
Definition: general_source.h:14
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
std::vector< int > _input_variables
Definition: general_source.h:40
std::vector< real > _params
Definition: general_source.h:38
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: general_source.h:27
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: general_source.h:22
int _S_type
Definition: general_source.h:39
void setup(const WxCryptSet &wxc) override
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