Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dynare
preprocessor
Commits
b7d50560
Verified
Commit
b7d50560
authored
Nov 22, 2018
by
Sébastien Villemot
Browse files
Move ModelTree constructor up in the file for clarity
parent
dfe1a005
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ModelTree.cc
View file @
b7d50560
...
...
@@ -86,6 +86,17 @@ ModelTree::copyHelper(const ModelTree &m)
nonstationary_symbols_map
[
it
.
first
]
=
make_pair
(
it
.
second
.
first
,
f
(
it
.
second
.
second
));
}
ModelTree
::
ModelTree
(
SymbolTable
&
symbol_table_arg
,
NumericalConstants
&
num_constants_arg
,
ExternalFunctionsTable
&
external_functions_table_arg
,
bool
is_dynamic_arg
)
:
DataTree
{
symbol_table_arg
,
num_constants_arg
,
external_functions_table_arg
,
is_dynamic_arg
},
derivatives
(
4
),
NNZDerivatives
(
4
,
0
),
temporary_terms_derivatives
(
4
)
{
}
ModelTree
::
ModelTree
(
const
ModelTree
&
m
)
:
DataTree
{
m
},
equations_lineno
{
m
.
equations_lineno
},
...
...
@@ -1246,17 +1257,6 @@ ModelTree::BlockLinear(const blocks_derivatives_t &blocks_derivatives, const vec
return
(
blocks_linear
);
}
ModelTree
::
ModelTree
(
SymbolTable
&
symbol_table_arg
,
NumericalConstants
&
num_constants_arg
,
ExternalFunctionsTable
&
external_functions_table_arg
,
bool
is_dynamic_arg
)
:
DataTree
{
symbol_table_arg
,
num_constants_arg
,
external_functions_table_arg
,
is_dynamic_arg
},
derivatives
(
4
),
NNZDerivatives
(
4
,
0
),
temporary_terms_derivatives
(
4
)
{
}
int
ModelTree
::
equation_number
()
const
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment