Skip to content

Commit

Permalink
Added algebraic number access methods to model config.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinffernandez committed Apr 20, 2023
1 parent c717271 commit 98b5207
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mmoc/util/model_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class ModelConfig {
inline bool algorithm() { return _algorithm; };
inline void setStateNbr(int state_nbr) { _state_nbr = state_nbr; }
inline int stateNbr() const { return _state_nbr; }
inline void setAlgebraicNbr(int algebraic_nbr) { _algebraic_nbr = algebraic_nbr; }
inline int algebraicNbr() const { return _algebraic_nbr; }
inline void setSymDiff(bool sym_diff) { _sym_diff = sym_diff; }
inline bool symDiff() const { return _sym_diff; }

Expand Down Expand Up @@ -105,6 +107,7 @@ class ModelConfig {
_ordered_derivatives(),
_events(),
_algorithm(false),
_algebraic_nbr(0),
_state_nbr(0),
_symbols(),
_local_symbols(),
Expand All @@ -128,6 +131,7 @@ class ModelConfig {
IR::EquationTable _ordered_derivatives;
IR::EventTable _events;
bool _algorithm;
int _algebraic_nbr;
int _state_nbr;
VarSymbolTable _symbols;
SymbolTable _local_symbols;
Expand Down

0 comments on commit 98b5207

Please sign in to comment.