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
ba73f712
Commit
ba73f712
authored
14 years ago
by
Stéphane Adjemian
Committed by
Sébastien Villemot
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added an error message when a variable is declared as oibserved more than once.
(cherry picked from commit
91eb4663
)
parent
7ec5c5c1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/dynare_estimation_init.m
+4
-1
4 additions, 1 deletion
matlab/dynare_estimation_init.m
with
4 additions
and
1 deletion
matlab/dynare_estimation_init.m
+
4
−
1
View file @
ba73f712
...
...
@@ -44,7 +44,6 @@ else
if
~
isempty
(
strmatch
(
'dsge_prior_weight'
,
M_
.
param_names
))
options_
.
dsge_var
=
1
;
end
var_list_
=
check_list_of_variables
(
options_
,
M_
,
var_list_
);
options_
.
varlist
=
var_list_
;
end
...
...
@@ -53,6 +52,10 @@ options_.lgyidx2varobs = zeros(size(M_.endo_names,1),1);
for
i
=
1
:
size
(
M_
.
endo_names
,
1
)
tmp
=
strmatch
(
deblank
(
M_
.
endo_names
(
i
,:)),
options_
.
varobs
,
'exact'
);
if
~
isempty
(
tmp
)
if
length
(
tmp
)
>
1
disp
(
' '
)
error
([
'Multiple declarations of '
deblank
(
M_
.
endo_names
(
i
,:))
' as an observed variable is not allowed!'
])
end
options_
.
lgyidx2varobs
(
i
,
1
)
=
tmp
;
end
end
...
...
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