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
dynare
Commits
5a8d2e90
Unverified
Commit
5a8d2e90
authored
Jan 14, 2022
by
Johannes Pfeifer
Committed by
Sébastien Villemot
Jan 14, 2022
Browse files
occbin: fix bug if there is only a surprise shock in the first period
(cherry picked from commit
3b592534
)
parent
1b1ca68c
Pipeline
#6646
failed with stages
in 416 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
matlab/+occbin/setup.m
View file @
5a8d2e90
...
...
@@ -56,7 +56,7 @@ if isfield(M_,'surprise_shocks') && ~isempty(M_.surprise_shocks)
ivar
=
M_
.
surprise_shocks
(
ii
)
.
exo_id
;
temp
(
M_
.
surprise_shocks
(
ii
)
.
periods
,
ivar
)
=
M_
.
surprise_shocks
(
ii
)
.
value
;
end
shock_index
=~
all
(
temp
==
0
);
shock_index
=~
all
(
temp
==
0
,
1
);
options_
.
occbin
.
simul
.
SHOCKS
=
temp
(:,
shock_index
);
options_
.
occbin
.
simul
.
exo_pos
=
find
(
shock_index
);
end
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