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
336fc565
Commit
336fc565
authored
12 years ago
by
Sébastien Villemot
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'jpfeifer/master'
parents
7e221e5d
1a968d5f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/print_info.m
+14
-1
14 additions, 1 deletion
matlab/print_info.m
matlab/stochastic_solvers.m
+7
-0
7 additions, 0 deletions
matlab/stochastic_solvers.m
with
21 additions
and
1 deletion
matlab/print_info.m
+
14
−
1
View file @
336fc565
...
...
@@ -51,7 +51,20 @@ if ~noprint
case
7
error
([
'One of the eigenvalues is close to 0/0 (the absolute '
...
'value of numerator and denominator is smaller than 1e-6)'
])
case
19
case
8
if
~
isempty
(
info
(
2
))
global
M_
;
disp_string
=
deblank
(
M_
.
param_names
(
info
(
2
),:));
for
ii
=
1
:
length
(
info
)
-
2
disp_string
=
[
disp_string
,
', '
,
deblank
(
M_
.
param_names
(
info
(
2
+
ii
),:))];
end
error
([
'The Jacobian contains NaNs because the following parameters are NaN: '
...
disp_string
])
else
error
([
'The Jacobian contains NaNs'
])
end
case
19
error
(
'The steadystate file did not compute the steady state'
)
case
20
error
([
'Impossible to find the steady state. Either the model'
...
...
...
This diff is collapsed.
Click to expand it.
matlab/stochastic_solvers.m
+
7
−
0
View file @
336fc565
...
...
@@ -120,6 +120,13 @@ if ~isreal(jacobia_)
end
end
if
any
(
any
(
isnan
(
jacobia_
)))
info
(
1
)
=
8
;
NaN_params
=
find
(
isnan
(
M_
.
params
));
info
(
2
:
length
(
NaN_params
)
+
1
)
=
NaN_params
;
return
end
kstate
=
dr
.
kstate
;
kad
=
dr
.
kad
;
kae
=
dr
.
kae
;
...
...
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