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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
caef9e26
Verified
Commit
caef9e26
authored
4 years ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Preprocessor: fix crash in DataTree::operator=() with model local variables
Also add a regression test. Closes:
#1782
parent
8ac65cbd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#5152
passed
4 years ago
Stage: build
Stage: test
Stage: pkg
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
preprocessor
+1
-1
1 addition, 1 deletion
preprocessor
tests/example1_mlv.mod
+7
-1
7 additions, 1 deletion
tests/example1_mlv.mod
with
8 additions
and
2 deletions
preprocessor
@
7b3df21f
Compare
e3c716fa
...
7b3df21f
Subproject commit
e3c716faba552bb59146b3b83d6c2fef5e650299
Subproject commit
7b3df21f11b81c83938abd982575260ab61c993a
This diff is collapsed.
Click to expand it.
tests/example1_mlv.mod
+
7
−
1
View file @
caef9e26
...
...
@@ -16,8 +16,14 @@ theta = 2.95;
phi = 0.1;
/* The following statement is a regression test for #1782.
Here the “foo” variable definition depends on “bar”, but the symbol ID of
“foo” will be smaller than the symbol ID of “bar”. */
model_local_variable foo $\text{foo}$;
model;
#foo = (exp(b)*c)/(exp(b(+1))*c(+1));
#bar = exp(b)*c;
#foo = bar/(exp(b(+1))*c(+1));
c*theta*h^(1+psi)=(1-alpha)*y;
k = beta*(foo
*(exp(b(+1))*alpha*y(+1)+(1-delta)*k));
...
...
This diff is collapsed.
Click to expand it.
Sébastien Villemot
@sebastien
mentioned in commit
fc88e371
·
4 years ago
mentioned in commit
fc88e371
mentioned in commit fc88e371ce3960f77b6878c6d5288d0ed33c43ab
Toggle commit list
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