Flow123d  jenkins-Flow123d-windows32-release-multijob-51
reaction.cc
Go to the documentation of this file.
1 #include "reaction/reaction.hh"
2 #include "system/global_defs.h"
3 #include "mesh/mesh.h"
4 #include "io/output.h"
5 
6 using namespace Input::Type;
7 using namespace std;
8 
9 
11  = AbstractRecord("ReactionTerm", "Equation for reading information about simple chemical reactions.");
12 
14  = Record("ReactionTermOutput", "Output setting for transport equations.")
16  "Parameters of output stream.");
17 
19  : EquationBase(init_mesh, in_rec),
20  concentration_matrix_(nullptr),
21  el_4_loc_(nullptr),
22  row_4_el_(nullptr),
23  distribution_(nullptr),
24  output_stream_(nullptr)
25 
26 {
27 }
28 
30 {
31 }
32 
33 
34 double **ReactionTerm::compute_reaction(double **concentrations, int loc_el)
35 {
36  ASSERT(0,"double **ReactionTerm::compute_reaction(double **concentrations, int loc_el)"
37  "needs to be re-implemented in ancestors.\n");
38  return concentrations;
39 }
40 
42 {
43  ASSERT(0,"ReactionTerm does not change TimeGovernor.\n");
44 }
Header: The functions for all outputs.
static Input::Type::Record input_type
The specification of output stream.
Definition: output_time.hh:57
static Default obligatory()
Definition: type_record.hh:87
???
Definition: mesh.h:108
virtual double ** compute_reaction(double **concentrations, int loc_el)=0
Definition: reaction.cc:34
ReactionTerm(Mesh &init_mesh, Input::Record in_rec)
Constructor.
Definition: reaction.cc:18
static Input::Type::AbstractRecord input_type
Definition: reaction.hh:24
Global macros to enhance readability and debugging, general constants.
#define ASSERT(...)
Definition: global_defs.h:121
Accessor to the data with type Type::Record.
Definition: accessors.hh:308
Class for declaration of polymorphic Record.
Definition: type_record.hh:463
void choose_next_time(void) override
Disable changes in TimeGovernor by empty method.
Definition: reaction.cc:41
~ReactionTerm(void)
Destructor.
Definition: reaction.cc:29
static Input::Type::Record input_type_output_record
Specification of the output record.
Definition: reaction.hh:31
Record type proxy class.
Definition: type_record.hh:161
Record & declare_key(const string &key, const KeyType &type, const Default &default_value, const string &description)
Definition: type_record.cc:386