Houtan Bastani
97765c1ae4
build system: remove unused configuration for ln and mkdir
2018-02-19 12:48:05 +01:00
Houtan Bastani
1db815e00b
clarify package/version info
2018-02-16 17:23:48 +01:00
Houtan Bastani
662d3f71ce
preprocessor submodule: README.md
2018-02-15 12:42:45 +01:00
Houtan Bastani
23f5cd1eb7
preprocessor submodule: gitignore
2018-02-15 12:40:40 +01:00
Houtan Bastani
2f9350b164
preprocessor submodule: build system
2018-02-15 12:40:17 +01:00
Houtan Bastani
b504f160ca
move files to src directory
2018-02-15 11:48:04 +01:00
Houtan Bastani
74eefb72e0
preprocessor submodule: license files
2018-02-15 11:23:47 +01:00
Houtan Bastani
ad1ef0d856
macroprocessor: fix unhandled case of nested ifdef/ifndef statements. closes #1587
2018-01-29 10:58:07 +01:00
Johannes Pfeifer
b94ff64cbc
Make fast_realtime accept observation as input
2018-01-26 18:23:49 +01:00
Johannes Pfeifer
a9a882bb3d
initial_condition_decomposition: Add nodisplay, graph_format, fig_name options
2018-01-26 12:09:14 +01:00
Johannes Pfeifer
da76711fd6
initial_condition_decomposition: return oo_ output argument to base workspace
2018-01-26 12:09:14 +01:00
Houtan Bastani
46fbd8107c
Fix commit reverted in 4d89452e1bb6cc55f0800d6cbf976f2519f822c1.
2018-01-25 00:47:50 +01:00
Stéphane Adjemian (Charybdis)
8bae11e85a
Revert "macroprocessor: interpret arrays passed on the command line as arrays instead of strings. closes #1578"
...
Commit 204d9cd05fef9ac6fda8530536578c05fab66366 fails with gcc 4.9 (I checked that it works flawlessly
with 6.x). The error message is:
MacroDriver.cc:63:24: error: 'class std::basic_string<char>' has no member named 'front'
if (it->second.front() == '[' && it->second.back() == ']')
^
MacroDriver.cc:63:53: error: 'class std::basic_string<char>' has no member named 'back'
if (it->second.front() == '[' && it->second.back() == ']')
Ideally we should bump the version of gcc used in the build system, but I will not do that before the
next bug fix release. I suppose it is easier to replace the front() and back() methods.
2018-01-24 22:15:57 +01:00
Houtan Bastani
17dd443341
macroprocessor: allow inline comments. closes #1550
2018-01-23 17:13:46 +01:00
Houtan Bastani
7ffbe32445
macroprocessor: interpret arrays passed on the command line as arrays instead of strings. closes #1578
2018-01-23 16:33:20 +01:00
Johannes Pfeifer
6876b0a7c9
Add preprocessor interface for fast_realtime option of
2018-01-12 09:48:14 +01:00
Houtan Bastani
9c9e8f816f
preprocessor: list nonlinear equations in .m file
2018-01-11 12:55:36 +01:00
Stéphane Adjemian (Scylla)
3e98a7bf43
Use cells of strings instead of char arrays.
2018-01-09 22:30:01 +01:00
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
9f8edf87dd
preprocessor: add line number to field in structure that macro variables are saved to. #1564
2017-12-07 18:11:00 +01:00
Houtan Bastani
f57fb54a45
preprocessor: support echomacrovars(save). closes #1564
2017-12-04 16:56:43 +01:00
Houtan Bastani
f836aa92c5
macroprocessor: add @#echomacrovars command. #1564
2017-12-01 16:55:36 +01:00
Johannes Pfeifer
68627a0465
Add diffuse_filter as option to dynare_sensitivity
2017-11-22 16:25:29 +01:00
Houtan Bastani
e5b226742d
Merge pull request #1549 from JohannesPfeifer/shock_decomp_type
...
Correct setting of plot_shock_decomp.type
2017-11-08 10:23:09 +01:00
Johannes Pfeifer
0b4e987409
Correct setting of plot_shock_decomp.type
...
Closes #1548
2017-11-07 20:24:29 +01:00
Houtan Bastani
b2e14f33cf
preprocessor: add line info for division by zero exception. closes #1546
2017-11-07 12:03:26 +01:00
Houtan Bastani
6436449961
preprocessor: JSON: place local variables in one list. Closes #1495
2017-11-06 15:21:11 +01:00
Houtan Bastani
4087bb5891
preprocessor: json: print steady_state_model file
2017-10-17 11:09:24 +02:00
Houtan Bastani
fdb9b745ea
preprocessor: json: change model keyword to modfile
2017-10-16 17:53:10 +02:00
Stéphane Adjemian(Charybdis)
be67116bf9
Removed useless commented line in main generated matlab script.
2017-10-14 17:43:20 +02:00
Houtan Bastani
dad94a7d58
preprocessor: clean up xref JSON printing
2017-10-13 16:21:13 +02:00
Stéphane Adjemian (Scylla)
0bfc70676f
Upgraded dseries and dates classes.
...
- Switched to master branch with new OOP interface.
- Removed initialization of empty dseries and dates objects (preprocessor).
2017-10-10 10:45:07 +02:00
Houtan Bastani
badd9069cc
preprocessor: fix generate_irfs syntax. closes #1531
2017-10-09 12:12:48 +02:00
Houtan Bastani
8c3cafb183
Merge pull request #1533 from JohannesPfeifer/interfaces
...
Add preprocessor options for GMM, SMM, IRFs
2017-10-06 15:30:05 +02:00
Johannes Pfeifer
abbddd5854
Add preprocessor options for GMM, SMM, IRFs
2017-10-06 15:06:38 +02:00
Houtan Bastani
1e40e0a8a1
preprocessor: interface for generate_irfs block. Closes #1531
2017-10-06 15:00:55 +02:00
Houtan Bastani
51ee883f21
preprocessor: add basic gmm smm statements, add options later. #1530
2017-10-05 15:13:17 +02:00
Houtan Bastani
6c9c01fe09
preprocessor: add missing fill! statements to static/dynamic functions
2017-10-02 11:14:35 +02:00
Houtan Bastani
b398b379fc
preprocessor: perpetuate nopreprocessoroutput option to preprocessor code #1390
2017-09-28 14:58:25 +02:00
Houtan Bastani
b3ccd928e3
preprocessor: special output for power deriv in JSON
2017-09-27 15:25:32 +02:00
Houtan Bastani
bde9cfa211
preprocessor: remove unnecessary global declaration. closes #1518
2017-09-18 11:42:36 +02:00
Houtan Bastani
42d40d00a6
preprocessor: fix int/size_t comparison warning for g++
2017-09-15 10:59:58 +02:00
Houtan Bastani
f9901a990e
remove file that was erroneously included in 25121bca4f9c97fed28599e9f9adeba2028e5bd0
2017-09-15 09:39:59 +02:00
Houtan Bastani
620f04a422
preprocessor: histval lag check must be made after transformation to the dynamic model due to ramsey_policy. closes #1193
2017-09-13 11:37:49 +02:00
Houtan Bastani
113b8799f3
preprocessor: histval should only accept lag values <= 0. closes #1510
2017-09-13 10:16:19 +02:00
Houtan Bastani
4213c42b96
preprocessor: factorize code that checks for valid symb_id
2017-09-12 14:37:37 +02:00
Houtan Bastani
7c884bcae2
preprocessor: remove size filed in Symbol Table class. closes #1380
2017-09-12 14:37:32 +02:00
Houtan Bastani
6e2024b6ed
preprocessor: remove commented RamseyConstraintsStatement code
2017-09-12 13:29:43 +02:00
Houtan Bastani
5c24fea322
preprocessor: allow variables that become state variables in ramsey_policy to be set in histval. closes #1193
2017-09-11 18:14:56 +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