Commit Graph

39 Commits (7e770f69e791e705ab535126e0157130dc9d40c6)

Author SHA1 Message Date
Sébastien Villemot 7e770f69e7
Remove workaround for errors in MEX files
Because at some point throwing exceptions from MEX files (with mexErrMsgTxt())
was not working under Windows 64-bit, we had designed a workaround to avoid
using exceptions.

Most MEX files were returning an error code as their first (or sometimes last)
argument, and that code would have to be checked from the MATLAB code.

Since this workaround is no longer needed, this commit removes it. As a
consequence, the interface of many MEX files is modified.

For some background, see https://www.dynare.org/pipermail/dev/2010-September/000895.html
2020-01-10 18:33:11 +01:00
Sébastien Villemot 7a75872f72
Modernization: use tilde (~) syntax for ignored output arguments 2018-11-13 18:02:09 +01:00
Sébastien Villemot a1b8bd39b2 Move the location of various generated files on the filesystem
- M and MEX files are now under +${MODELNAME}/
- bytecode, C source and JSON now under ${MODELNAME}/model/
2018-06-27 17:03:39 +02:00
Johannes Pfeifer a418a04249 model_diagnostics.m: bugfix after transition to cell arrays
disp does not work with cell
2018-01-26 11:45:54 +01:00
Stéphane Adjemian (Scylla) 7be8f10e0e Use cells of strings instead of char arrays. 2018-01-09 22:30:01 +01:00
Stéphane Adjemian (Charybdis) 5417b27ac7 Fixed indentation of matlab files. 2017-05-16 15:10:20 +02:00
Stéphane Adjemian (Charybdis) a53636e24e Fixed copyright notices. 2017-05-16 14:11:15 +02:00
Stéphane Adjemian (Charybdis) 88e1701289 Removed useless commas and semicolons. 2017-05-16 13:24:46 +02:00
Johannes Pfeifer 33d0f44c40 model_diagnostics.m: provide warning that check of dynamic model is not supported for block option instead of crashing 2016-12-17 21:28:04 +01:00
MichelJuillard 8045217773 Merge pull request #729 from JohannesPfeifer/complex_jacobian
Deal with debugging info on complex Jacobians
2015-07-20 14:08:33 +02:00
Johannes Pfeifer e4745cbc65 Add missing abs to unit root check in model_diagnostics.m 2014-12-03 13:35:06 +01:00
Johannes Pfeifer 3a9c273535 Allow for check of Hessian at order>2 in model_diagnostics.m 2014-10-29 19:37:03 +01:00
Johannes Pfeifer c1999443ce Condition singularity warning on unit root check
When singularity is detected, try to compute eigenvalues to see if unit root is present and issue warning according to this check
2014-10-29 19:33:33 +01:00
Johannes Pfeifer bf5d8c0546 Add debugging info for complex Jacobian to model_diagnostics.m and stochastic_solvers.m 2014-09-14 19:34:00 +02:00
Johannes Pfeifer d44825723b Adds test whether all parameters are set to model_diagnostics.m 2014-05-07 10:49:50 +02:00
Johannes Pfeifer 9cf83b6e63 Add check to model_diagnostics.m whether Hessian was computed 2014-04-01 14:39:19 +02:00
Johannes Pfeifer 90b4cae92a Expand model_diagnostics.m to check Jacobians for NaN and Inf 2014-03-28 14:52:29 +01:00
Johannes Pfeifer 5835242982 Add message if model_diagnostics found no problems 2014-02-10 18:21:20 +01:00
Johannes Pfeifer f2b75aa3b3 Fix typo in model_diagnostics.m 2013-11-08 08:27:29 +01:00
Johannes Pfeifer 8282e76d61 Add more explicit information in case of singularity problem 2013-10-31 08:14:35 +01:00
Johannes Pfeifer f77c1f2843 Fix model_diagnostics.m for case where check1 contains NaN as second output
Also stops execution when steady state could not be computed as Jacobian at this incorrect steady state is wrong.
2013-08-25 11:31:51 +02:00
Sébastien Villemot ad8b615771 Use maximum_endo_lag instead of maximum_lag
Closes: #292
2013-01-07 10:40:49 +01:00
Sébastien Villemot 31a13db66a Remove duplicate information in M_.blocksMFS 2012-11-16 17:39:03 +01:00
Sébastien Villemot 1f9cea669a Update copyright notices 2012-06-08 18:22:34 +02:00
Michel Juillard bef55c1dd1 enhanced model_diagnostics to deal with bytecode and blocks 2012-05-26 20:50:17 +02:00
Stéphane Adjemian (Charybdis) a36cf30118 Make options_.dynatol specific to x/f by adding dynatol.x and dynatol.f. By default dynatol.x=dynatol.f= old default value of dynatol. 2011-12-12 14:20:14 +01:00
Michel Juillard 97c09eb4ac fixing bug relative to auxiliary variables in model_diagnostics 2011-12-01 22:07:29 +01:00
Michel Juillard 0c0b9abbd3 bug fixing for model_diagnostics 2011-03-09 14:44:24 +01:00
Sébastien Villemot 02652f6eb8 Updated copyright notices 2011-02-04 17:27:33 +01:00
Sébastien Villemot 757a9067c0 Global reindentation of MATLAB files 2011-02-04 17:17:48 +01:00
Ferhat Mihoubi b356c5e58e add_auxiliary_variables_to_steadystate is compatible with bytecode option
+ minor corrections in steady_.m
2010-11-25 16:00:54 +01:00
Michel Juillard 124a6c5c12 correct bug when <fname>_steadystate.m file changes the value of parameters + display steady state in Ramsey policy 2010-05-29 07:48:00 +02:00
Michel Juillard 07748100ff adding to diagnoosticks check of rank of Jacobian of static model when steady state computation fails 2010-04-14 20:58:54 +02:00
sebastien 502e3e1df8 Beautified MATLAB code (Unix newline convention + Emacs indentation), except: AIM, swz, particle
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3250 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 17:17:34 +00:00
sebastien a2cef7009d Fixes for ticket #57
preprocessor:
* add a field "M_.orig_endo_nbr" containing the nbr of endogenous before adding aux vars
* always provide "M_.aux_vars" (define it to "[]" when there is no aux var)
* rename "M_.aux_vars().orig_endo_index" to "M_.aux_vars().orig_index"

M-files:
* for commands which accept a list of variables (stoch_simul, osr, estimation, dynasave, dynatype, datatomfile), when no variable is given, use only the set of original endogenous (without aux vars) as the default
* when displaying the decision rule, when there is aux vars in the state variables, replace them by their original name (with the right lag)
* in "steady", don't display aux vars
* special exception for ramsey policy: all vars (including aux vars) are displayed, because the system of aux vars from ramsey policy is not compatible with the aux vars from the preprocessor


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3166 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-25 10:22:39 +00:00
michel ce5c510d06 v4.1: add provision for <modfile>_steady_state.m and auxiliary variables for leads on more than 1 period
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3022 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-06 14:37:23 +00:00
michel 541129c1be v4.1: adding add_auxiliary_variables_to_steadystate.m and code to adjust output of <fname>_steadystate.m for additional auxiliary variables
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3014 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-02 12:10:50 +00:00
michel 9720af3354 4.1: model_diagnostics: added a test for singular Jacobian of the static model
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2546 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-02 13:22:41 +00:00
michel 9e2f1bdc70 v4.1: started a diagnostics routine that performs tests that are too expansive
to run systematically


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2524 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-03-26 09:34:40 +00:00