Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stéphane Adjemian
dynare
Commits
82f83a58
Commit
82f83a58
authored
May 19, 2015
by
Houtan Bastani
Browse files
Options
Downloads
Patches
Plain Diff
preprocessor: move external_functions_table reindexing to modfile::transformpass
parent
2ff3f06a
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
preprocessor/DataTree.cc
+0
-7
0 additions, 7 deletions
preprocessor/DataTree.cc
preprocessor/DataTree.hh
+0
-2
0 additions, 2 deletions
preprocessor/DataTree.hh
preprocessor/ModFile.cc
+1
-0
1 addition, 0 deletions
preprocessor/ModFile.cc
with
1 addition
and
9 deletions
preprocessor/DataTree.cc
+
0
−
7
View file @
82f83a58
...
@@ -61,7 +61,6 @@ DataTree::reindex(SymbolTable &orig_symbol_table)
...
@@ -61,7 +61,6 @@ DataTree::reindex(SymbolTable &orig_symbol_table)
first_deriv_external_function_node_map
.
clear
();
first_deriv_external_function_node_map
.
clear
();
second_deriv_external_function_node_map
.
clear
();
second_deriv_external_function_node_map
.
clear
();
reindexExternalFunctions
(
orig_symbol_table
);
reindexLocalVars
(
orig_symbol_table
);
reindexLocalVars
(
orig_symbol_table
);
}
}
...
@@ -76,12 +75,6 @@ DataTree::reindexLocalVars(SymbolTable &orig_symbol_table)
...
@@ -76,12 +75,6 @@ DataTree::reindexLocalVars(SymbolTable &orig_symbol_table)
it
->
second
->
cloneDynamicReindex
(
*
this
,
orig_symbol_table
));
it
->
second
->
cloneDynamicReindex
(
*
this
,
orig_symbol_table
));
}
}
void
DataTree
::
reindexExternalFunctions
(
SymbolTable
&
orig_symbol_table
)
{
external_functions_table
.
reindex
(
symbol_table
,
orig_symbol_table
);
}
expr_t
expr_t
DataTree
::
AddNonNegativeConstant
(
const
string
&
value
)
DataTree
::
AddNonNegativeConstant
(
const
string
&
value
)
{
{
...
...
This diff is collapsed.
Click to expand it.
preprocessor/DataTree.hh
+
0
−
2
View file @
82f83a58
...
@@ -238,8 +238,6 @@ public:
...
@@ -238,8 +238,6 @@ public:
void
writePowerDerivCHeader
(
ostream
&
output
)
const
;
void
writePowerDerivCHeader
(
ostream
&
output
)
const
;
//! Write getPowerDeriv
//! Write getPowerDeriv
void
writePowerDeriv
(
ostream
&
output
,
bool
use_dll
)
const
;
void
writePowerDeriv
(
ostream
&
output
,
bool
use_dll
)
const
;
//! reindex external functions
void
reindexExternalFunctions
(
SymbolTable
&
orig_symbol_table
);
void
reindex
(
SymbolTable
&
orig_symbol_table
);
void
reindex
(
SymbolTable
&
orig_symbol_table
);
void
reindexLocalVars
(
SymbolTable
&
orig_symbol_table
);
void
reindexLocalVars
(
SymbolTable
&
orig_symbol_table
);
//! Thrown when trying to access an unknown variable by deriv_id
//! Thrown when trying to access an unknown variable by deriv_id
...
...
This diff is collapsed.
Click to expand it.
preprocessor/ModFile.cc
+
1
−
0
View file @
82f83a58
...
@@ -316,6 +316,7 @@ ModFile::transformPass(bool nostrict)
...
@@ -316,6 +316,7 @@ ModFile::transformPass(bool nostrict)
dynamic_model
.
reindex
(
orig_symbol_table
);
dynamic_model
.
reindex
(
orig_symbol_table
);
dynamic_model
.
reindexStaticOnlyEquations
(
orig_symbol_table
);
dynamic_model
.
reindexStaticOnlyEquations
(
orig_symbol_table
);
external_functions_table
.
reindex
(
symbol_table
,
orig_symbol_table
);
vector
<
Statement
*>
orig_statements
=
statements
;
vector
<
Statement
*>
orig_statements
=
statements
;
statements
.
clear
();
statements
.
clear
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment