Commit Graph

65 Commits (cb411e5642ecd6978c86d4ad3dfca15fa840c913)

Author SHA1 Message Date
Houtan 7c22fe1676 preprocessor: add option to remove empty lines from macro-expanded mod file. closes #1551 2017-12-07 18:47:21 +01:00
Houtan Bastani b398b379fc preprocessor: perpetuate nopreprocessoroutput option to preprocessor code #1390 2017-09-28 14:58:25 +02:00
Houtan Bastani dff540df4e preprocessor: allow passing mod file as string. Closes #1509
Usage: ./dynare_m $'<<mod file text>>'

The $’’ expands special characters. This is necessary because our setup for native matlab statements require that they end with a newline. In other words, the rest of the mod file can be sent on one line, but if there is a native matlab statement you must enter a `\n` after it.

NB: In this case, apostrophes must be escaped: ' becomes \'

e.g., to run tests/example1.mod:
./dynare_m  $'//Example 1 from Collard\'s guide to Dynare\nvar y, c, k, a, h, b;varexo e, u;verbatim;% I want these comments included in\n% example1.m 1999q1 1999y\n%\nvar = 1;\nend;parameters beta, rho, alpha, delta, theta, psi, tau;alpha = 0.36;rho   = 0.95;tau   = 0.025;beta  = 0.99;delta = 0.025;psi   = 0;theta = 2.95;phi   = 0.1;\nmodel;c*theta*h^(1+psi)=(1-alpha)*y;k = beta*(((exp(b)*c)/(exp(b(+1))*c(+1)))*(exp(b(+1))*alpha*y(+1)+(1-delta)*k));y = exp(a)*(k(-1)^alpha)*(h^(1-alpha));k = exp(b)*(y-c)+(1-delta)*k(-1);a = rho*a(-1)+tau*b(-1) + e;b = tau*a(-1)+rho*b(-1) + u;end;initval;y = 1.08068253095672;c = 0.80359242014163;h = 0.29175631001732;k = 11.08360443260358;a = 0;b = 0;e = 0;u = 0;end;shocks;var e; stderr 0.009;var u; stderr 0.009;var e, u = phi*0.009*0.009;end; stoch_simul;'
2017-09-08 17:40:04 +02:00
Stéphane Adjemian (Scylla) 8b94cb1ab0 Added option stochastic to Dynare command. 2017-08-31 10:19:43 +02:00
Houtan Bastani 31dfe2a6b6 Add nopreprocessoroutput option to dynare. Closes #1390 2017-08-25 14:26:39 +02:00
Houtan Bastani 9dbb6736c5 preprocessor: add missing option to dynare options message 2017-08-25 14:20:08 +02:00
Houtan Bastani d83694f1d8 preprocessor: fix spacing in message 2017-08-25 14:20:08 +02:00
Houtan Bastani 955fb4f003 preprocessor: print JSON deriv detail by default; use option to print less-detailed versions of dynamic/static models 2017-06-29 13:08:41 +02:00
Sébastien Villemot ec561138d4 Fix various typos (thanks lintian). 2017-06-28 15:06:54 +02:00
Stéphane Adjemian (Charybdis) 51feda7d02 Fixed code indentation. 2017-06-14 07:01:31 +02:00
Houtan Bastani 746f88eb6e preprocessor: create two different static and dynamic files with the option jsonprintderivdetail. #1387 2017-03-03 14:42:37 +01:00
Houtan Bastani 32a08f8db0 preprocessor: add onlyjson option to allow exit upon writing of JSON output. #1387 2017-02-28 14:34:22 +01:00
Houtan Bastani 915bea91a1 preprocessor: output JSON after different steps, write static, dynamic, params derivs files in JSON. #1387 2017-02-24 17:43:22 +01:00
Houtan Bastani 64642d928c preprocessor: write JSON output. #1387 2017-02-06 17:41:18 +01:00
Houtan Bastani bb51e3084a preprocessor: add support for MinGW. #1226 2016-10-14 11:25:23 +02:00
Houtan Bastani 18328210b2 preprocessor: simplify a5590f79176315f7b214d6deeb865956683f4230 2016-05-19 12:10:19 +02:00
Houtan Bastani 6bb02e0bd4 preprocessor: fix bug in debian compilation 2016-05-19 12:06:53 +02:00
Houtan Bastani 323fe8d41a preprocessor: replace no_2nd_order_params_derivs with params_deriv_order. #1187 2016-05-18 12:26:19 +02:00
Houtan Bastani ac5a82ded9 Revert "Revert "preprocessor: add option no_2nd_order_params_derivs. #1187""
This reverts commit c496d6f5ca905abe99a257f8f757fc3816cefe56.
2016-05-18 10:34:45 +02:00
Houtan Bastani e68711c6c3 Revert "preprocessor: add option no_2nd_order_params_derivs. #1187"
This reverts commit 024586fbb1152d4ee4d2aa259c5012c2483c9a52.
2016-05-17 15:37:46 +02:00
Houtan Bastani c3dcc0e121 preprocessor: add option no_2nd_order_params_derivs. #1187 2016-05-12 14:40:28 +02:00
Houtan Bastani 50a4d50821 preprocessor: introduce new option compute_xrefs, #1125 2016-02-23 13:57:55 +01:00
Houtan Bastani 893cb9d816 preprocessor: turn on temporary terms for julia 2015-09-01 14:11:38 +02:00
Houtan Bastani 7cc90013cd Merge branch 'julia' 2015-09-01 11:35:16 +02:00
Houtan Bastani 9e6f62d988 preprocessor: fix build on wheezy due to bug introduced in f143b54142ae1c1f27a22842c3d994323e59f16d 2015-08-31 14:33:00 +02:00
Houtan Bastani c6836b33ef preprocessor: allow for [paths] block in dynare config file. closes #1039 2015-08-28 18:06:30 +02:00
Houtan Bastani 1e307ca50f preprocessor: read config file before macroprocessor run. #1039 2015-08-28 16:09:47 +02:00
Houtan Bastani 9f90d6ae8c preprocessor: macroprocessor: add -I switch. closes #1039 2015-08-27 16:49:12 +02:00
Houtan Bastani 5ad0a4a96f julia: initial preprocessor stub 2015-07-21 18:02:34 +02:00
Houtan Bastani 35cd407f5f preprocessor: add minimal_workspace option to dynare statement, #946 2015-05-28 11:50:39 +02:00
Michel Juillard f020a2cb52 adding dynare command line option 'fast' in order not to recompile MEX
files if the lists of variables and the equations haven't changed
between two runs of the same model file.
2015-05-10 20:29:03 +02:00
Houtan Bastani 0f24ec02a6 preprocessor: add new commandline option onlyclearglobals. closes #635 2014-12-30 21:51:33 +01:00
Michel Juillard b32bf86055 fixing bugs in commit 182c27f 2014-04-24 14:33:04 +02:00
Michel Juillard 09e719046b changed line options for extended preprocessor, adding language option
renamed FileOutputType.hh as ExtendedPreprocessorTypes.hh
updated Makefile.am
2014-04-24 14:33:04 +02:00
Sébastien Villemot 9a0dddef31 Rename OutputType to FileOutputType (to distinguish it from ExprOutputType).
Also rename DynareOutput.hh to FileOutputType.hh. Include the latter in dist
tarball, and add copyright/license header.
2014-02-25 16:45:55 +01:00
Michel Juillard 6e0ef026ac write C++ version of model functions without temporary terms 2014-02-24 13:33:48 +01:00
Michel Juillard 2e7afdb22b extended-preprocessor: adding line options output= and cuda; starting
to change ModFile::c_driver mechanism
2014-02-24 13:27:14 +01:00
Houtan Bastani d22047a284 preprocessor: remove "using namespace std" where not needed 2013-11-20 11:36:01 +01:00
Houtan Bastani 76714b34df new nostrict command-line option does not exit when there are more endogenous than equations (closes #2) 2013-09-13 14:44:01 -04:00
Stéphane Adjemian (Charybdis) 4fe0f4af65 Added (command line) nointeractive option. 2013-07-10 12:02:12 +02:00
Stéphane Adjemian (Charybdis) d7c4d4d3eb Added (command line) nograph option. 2013-07-10 11:03:48 +02:00
Sébastien Villemot 4f2f9e7ed6 Add preprocessor messages (stdout, stderr) to the logfile
Closes #306
2013-03-18 13:44:04 +01:00
Sébastien Villemot 8610453baf Reorganization of warnings
- at the end of the computation, don't display all preprocessor warnings but
   only their number
 - also display if there has been a MATLAB/Octave warning (counting their
   number does not seem feasible). Closes #181
 - add new "nowarn" option to disable all warnings. Closes #301
2013-02-26 16:50:05 +01:00
Sébastien Villemot e1e77909a1 New preprocessor option for not creating a logfile
Closes: #241
2012-04-20 18:15:02 +02:00
Houtan Bastani c209c1cdbf implement the possibility of passing macro-processor defines on the command-line (ticket 171) 2011-03-29 18:18:46 +02:00
Sébastien Villemot acce150795 New "console" option (closes #130) 2010-10-28 11:29:39 +02:00
Houtan Bastani ad73ab0a83 Dynare parallel: preprocessor implementation 2010-10-28 10:54:43 +02:00
sebastien 3aa8876538 Beautified preprocessor code (uncrustify + emacs + manual adjustments, in particular with templates in MacroValue)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3249 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 17:13:23 +00:00
sebastien 44f82ae843 preprocessor: fixed typo
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3224 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-11 14:52:04 +00:00
sebastien 628f0aa8af USE_DLL option now works with MSVC + Added new options for Windows to 'dynare' command, to select the compiler: 'cygwin' and 'msvc' + Added the mexopts.bat for Cygwin in the SVN
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3223 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-11 14:46:21 +00:00