ReFRACtor
model_state.h
Go to the documentation of this file.
1 #ifndef MODEL_STATE_H
2 #define MODEL_STATE_H
3 #include <problem_state.h>
4 
5 namespace FullPhysics {
6 
7 //-----------------------------------------------------------------------
34 //-----------------------------------------------------------------------
35 
36 class ModelState :
37  virtual public ProblemState {
38 
39 public:
40 
41 
42 //-----------------------------------------------------------------------
44 //-----------------------------------------------------------------------
45 
47 
48 
49 //-----------------------------------------------------------------------
54 //-----------------------------------------------------------------------
55 
57  { set(s); }
58 
59 
60  virtual ~ModelState() {}
61 
62 
63 //-----------------------------------------------------------------------
71 //-----------------------------------------------------------------------
72 
73  virtual void set(const ModelState& s);
74 
75 
76 //-----------------------------------------------------------------------
82 //-----------------------------------------------------------------------
83 
84  virtual void clear()
85  { ProblemState::clear(); M.free(); K.free(); }
86 
87 
88 //-----------------------------------------------------------------------
90 //-----------------------------------------------------------------------
91 
92  virtual void print(std::ostream& Os) const
93  { Os << "ModelState"; }
94 
95 
96 protected:
97 
98  blitz::Array<double, 1> M;
99  blitz::Array<double, 2> K;
100 
101 };
102 }
103 #endif
const Unit s("s", 1.0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0)
The state for a parametrized mathematical model (a vector function) and its Jacobian.
Definition: model_state.h:36
ModelState(const ModelState &s)
Copy constructor.
Definition: model_state.h:56
virtual void print(std::ostream &Os) const
Prints description of object.
Definition: model_state.h:92
virtual void clear()
Deletes data contents.
blitz::Array< double, 2 > K
Definition: model_state.h:99
blitz::Array< double, 1 > M
Definition: model_state.h:98
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
The base class for all problem states.
Definition: problem_state.h:51
ModelState()
Default constructor.
Definition: model_state.h:46
virtual void clear()
Deletes data contents.
Definition: model_state.h:84

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:10