Commit Graph

82 Commits (38996c7449c16005180c26d766461eb5c62563c3)

Author SHA1 Message Date
Houtan Bastani f32f5f7346 display options that dynare is called with in output 2017-07-03 17:45:06 +02:00
Stéphane Adjemian (Charybdis) 63d6dfccf4 Added the possibility to dynare the dynare command options in the mod file. 2017-06-30 10:16:26 +02:00
Stéphane Adjemian (Charybdis) b5275edaa1 Simplified test on {dyn, mod} extensions. 2017-06-29 22:13:50 +02:00
Stéphane Adjemian (Charybdis) ec9f755c27 Raise an error if file name given to dynare ends with a period. 2017-06-29 22:10:06 +02:00
Stéphane Adjemian (Charybdis) ea9084afc8 Fixed comments. 2017-06-29 22:07:43 +02:00
Stéphane Adjemian (Charybdis) 45aef1de62 Removed test on octave version.
Which has moved in dynare_confign, see e71e89bb38.
2017-06-29 17:55:52 +02:00
Stéphane Adjemian (Charybdis) fa7adc304b Display help message if dynare is invoked without arguments. 2017-06-29 16:33:53 +02:00
Stéphane Adjemian (Charybdis) 119b5a62f2 Merge branch 'master' into json 2017-06-16 20:03:36 +02: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
Houtan Bastani ed3e74994f preprocessor: add onlyjson option to allow exit upon writing of JSON output. #1387 2017-02-28 14:34:22 +01:00
Houtan Bastani d05dd34d30 preprocessor: write JSON output. #1387 2017-02-06 17:41:18 +01:00
Houtan Bastani ac15eda6de Revert "Add check for valid filename"
This reverts commit 39c7b793f2.

(would not be necessary if 9f7d3524e9 had
been rebased)
2015-04-22 13:55:35 +02:00
Houtan Bastani 57f89d6843 Merge pull request #905 from JohannesPfeifer/filename_check
Add check for valid filename
2015-04-22 13:47:15 +02:00
Johannes Pfeifer 9f7d3524e9 Add check for valid filename
Uses the same restrictions as variable names.
2015-04-22 13:30:09 +02:00
Johannes Pfeifer 39c7b793f2 Add check for valid filename
Uses the same restrictions as variable names.
2015-04-22 10:57:10 +02:00
Stéphane Adjemian (Charybdis) 0e1dd779b9 Check that Dynare's routines are not overridden by other routines.
By default Dynare will temporarly change Matlab/Octave's path. Added an
option to force Dynare to keep the current path. Also check that the user
did not put dynare/matlab directory with all the subfolders in the path.

With this patch, we do not need to prefix Dynare routines with dyn_ or
dynare_ anymore.
2015-03-30 15:04:59 +02:00
Houtan Bastani 34c871b53c getenv provides one output on windows 2015-03-27 18:58:35 +01:00
Houtan Bastani 90e00b3871 fixes for windows 2015-03-27 17:29:10 +01:00
Houtan Bastani d7c253ae59 support 64-bit preprocessor, #862 2015-03-26 19:08:30 +01:00
Houtan Bastani 7849707843 fix typo 2014-03-28 15:25:22 +01:00
Sébastien Villemot f0f355e9b5 Fix typo. 2014-03-27 17:48:13 +01:00
Stéphane Adjemian (Scylla) 5e95824168 Fixed bug in the error message displayed when the mod file is not in the current folder. 2014-03-26 15:43:32 +01:00
Sébastien Villemot 9e332ef305 Forbid MOD file names that are too long.
And rename filenames in the testsuite that are too long.

Closes #626
2014-02-28 18:25:02 +01:00
Sébastien Villemot 5308da2cad Upgrade the minimum requirement to MATLAB 7.5 (R2007b). 2014-02-03 15:52:54 +01:00
Sébastien Villemot c391876196 Workaround for a strange bug with Octave.
If there is any call to exist(fname) before the call to the preprocessor, then
Octave will use the old copy of the .m instead of the newly generated one.
Deleting the .m beforehand fixes the problem.
2014-01-03 14:29:09 +01:00
Sébastien Villemot 66d48f5917 Compatibility fixes for Octave 3.8.
- no longer use OCTAVE_QUIT in MEX files; this seems now only possible in
  oct-files. (Ref #304)
- do not build linsolve.oct on Octave >= 3.8, it is available natively.
- do not add strjoin.m to the patch on Octave >= 3.8, it is available natively.
- default_save_options has been renamed save_default_options.
2014-01-03 11:05:39 +01:00
Stéphane Adjemian (Scylla) 01f2dd2ab1 Changed the paths to Dynare's prior and post processing hooks. 2013-11-28 15:21:52 +01:00
Stéphane Adjemian (Scylla) 1ff556ada2 Give more informations if the mod file is not found in the current directory. 2013-11-28 14:49:42 +01:00
Stéphane Adjemian (Scylla) baa596f9be Give more details if the mod file is not found in the current directory. 2013-11-28 11:07:14 +01:00
Stéphane Adjemian (Scylla) b99db45707 Fixed bug (dynare path has to be defined sooner, otherwise isoctave is unknown in warning_config). 2013-11-15 17:03:58 +01:00
Stéphane Adjemian (Charybdis) ddd95361ba Cosmetic changes. Added isoctave function to replace exist('OCTAVE_VERSION'). 2013-11-04 10:54:45 +01:00
Johannes Pfeifer 3dd62b37c6 Add more explicit error message if mod-file cannot be located of file in different folder is called 2013-10-09 10:22:44 +02:00
Houtan Bastani 45942b244c stop dynare.m if onlymacro is passed, closes #487 2013-10-01 15:13:18 +02:00
Stéphane Adjemian (Charybdis) 4052d4ccaf Cosmetic changes. Use skipline() instead of disp(' '). 2013-07-10 17:12:34 +02:00
Stéphane Adjemian (Charybdis) 38f912268a Added the possibility to use pre and post dynare preprocessor hooks defined by matlab scripts. 2013-06-17 17:52:26 +02:00
Sébastien Villemot 61485ab809 Fix copyright notices 2013-06-12 17:04:46 +02:00
Houtan Bastani 0e5acda10e bug fix: fputs not a matlab function 2013-03-18 16:25:38 +01:00
Houtan Bastani aac25a88bd bug fix: substr not a matlab function 2013-03-18 16:19:48 +01:00
Houtan Bastani ec9f53a23b bug fix: single quotes 2013-03-18 16:17:29 +01:00
Sébastien Villemot cda0e03776 Add preprocessor messages (stdout, stderr) to the logfile
Closes #306
2013-03-18 13:44:04 +01:00
Sébastien Villemot 0421387732 Require Octave 3.6, since we use parfor 2012-11-29 14:52:33 +01:00
Houtan Bastani 6c7501d906 move console setting to global_initialization.m 2012-10-30 14:10:54 +01:00
Houtan Bastani fc7ea133d9 force console mode when matlab started with -nojvm or -nodisplay flags or octave started with --no-window-system flag (ticket 283) 2012-10-30 13:50:51 +01:00
Sébastien Villemot 7de6be31e6 Upgrade the minimum requirement to MATLAB 7.3 (R2006b) 2012-09-18 11:54:40 +02:00
Sébastien Villemot 6adb58dbc1 Remove workaround for Octave 3.2 (we now require 3.4) 2012-09-18 11:42:11 +02:00
Sébastien Villemot 56914e3d4c Require at least Octave 3.4 (linsolve does not compile against 3.2) 2012-08-23 16:40:00 +02:00
Sébastien Villemot a44fa426c4 Simplify logic of test since Octave 3.2 is now the minimal requirement 2012-04-04 22:16:39 +02:00
Sébastien Villemot 2057365143 Require at least Octave 3.2.2 (and therefore drop rcond.m and bicgstab.m)
Octave 3.2 has been around for a long time, and is included in most
distributions.
2012-04-03 17:57:38 +02:00