Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Dynare
preprocessor
Commits
31ff8da8
Commit
31ff8da8
authored
Aug 19, 2011
by
Houtan Bastani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused variables from preprocessor
parent
ab589aaa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
ModelTree.cc
ModelTree.cc
+1
-2
StaticModel.cc
StaticModel.cc
+0
-2
No files found.
ModelTree.cc
View file @
31ff8da8
...
...
@@ -418,7 +418,7 @@ ModelTree::computePrologueAndEpilogue(const jacob_map_t &static_jacobian_arg, ve
equation_type_and_normalized_equation_t
ModelTree
::
equationTypeDetermination
(
const
map
<
pair
<
int
,
pair
<
int
,
int
>
>
,
expr_t
>
&
first_order_endo_derivatives
,
const
vector
<
int
>
&
Index_Var_IM
,
const
vector
<
int
>
&
Index_Equ_IM
,
int
mfs
)
const
{
expr_t
lhs
,
rhs
;
expr_t
lhs
;
BinaryOpNode
*
eq_node
;
EquationType
Equation_Simulation_Type
;
equation_type_and_normalized_equation_t
V_Equation_Simulation_Type
(
equations
.
size
());
...
...
@@ -428,7 +428,6 @@ ModelTree::equationTypeDetermination(const map<pair<int, pair<int, int> >, expr_
int
var
=
Index_Var_IM
[
i
];
eq_node
=
equations
[
eq
];
lhs
=
eq_node
->
get_arg1
();
rhs
=
eq_node
->
get_arg2
();
Equation_Simulation_Type
=
E_SOLVE
;
map
<
pair
<
int
,
pair
<
int
,
int
>
>
,
expr_t
>::
const_iterator
derivative
=
first_order_endo_derivatives
.
find
(
make_pair
(
eq
,
make_pair
(
var
,
0
)));
pair
<
bool
,
expr_t
>
res
;
...
...
StaticModel.cc
View file @
31ff8da8
...
...
@@ -203,7 +203,6 @@ StaticModel::writeModelEquationsOrdered_M(const string &static_basename) const
map
<
expr_t
,
int
>
reference_count
;
temporary_terms_t
local_temporary_terms
;
ofstream
output
;
int
nze
;
vector
<
int
>
feedback_variables
;
deriv_node_temp_terms_t
tef_terms
;
ExprNodeOutputType
local_output_type
;
...
...
@@ -219,7 +218,6 @@ StaticModel::writeModelEquationsOrdered_M(const string &static_basename) const
//recursive_variables.clear();
feedback_variables
.
clear
();
//For a block composed of a single equation determines wether we have to evaluate or to solve the equation
nze
=
derivative_endo
[
block
].
size
();
BlockSimulationType
simulation_type
=
getBlockSimulationType
(
block
);
unsigned
int
block_size
=
getBlockSize
(
block
);
unsigned
int
block_mfs
=
getBlockMfs
(
block
);
...
...
Write
Preview
Markdown
is supported
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