Sébastien Villemot
029ab65e68
Perfect foresight with initval_file: fix another bug when M_.orig_maximum_lag ≠ M_.maximum_lag
...
Similar to 95dcb5f4b7
.
2020-11-05 16:08:57 +01:00
Sébastien Villemot
f7ee0b9441
Build system: add missing -fPIC flag for Fortran 2008 MEX files under Octave
2020-11-05 15:40:14 +01:00
Sébastien Villemot
95dcb5f4b7
Perfect foresight with initval_file: fix bug when M_.orig_maximum_lag ≠ M_.maximum_lag
...
By the way, remove inexact comment about a similar code in histvalf.m
2020-11-05 15:39:55 +01:00
Sébastien Villemot
f823f1a691
Manual: fix link to (old) Dynare wiki
2020-11-03 16:52:23 +01:00
Sébastien Villemot
ac59b22015
CI: take advantage of the new “needs” keyword
...
In particular, this allows us to split the “test” and “pkg” stages, without
increasing the execution time.
2020-11-03 11:24:24 +01:00
Sébastien Villemot
78462b1bbd
Merge branch 'ifndef' into 'master'
...
Test for ifndef
See merge request Dynare/dynare!1763
2020-11-03 09:52:29 +00:00
Johannes Pfeifer
d38a4428cc
Move macro_processor/example1_macro.mod to subfolder
2020-11-02 16:00:03 +01:00
Johannes Pfeifer
b4f3eb4a1c
Add unit test for ifndef
...
See https://git.dynare.org/Dynare/dynare/-/issues/1747
2020-11-02 16:00:03 +01:00
Sébastien Villemot
463516c853
Preprocessor update
...
— Fix the interpretation of @#else clause within an @#ifndef
Closes : #1747
— Fix the interpretation of @#elseif clauses within an @#ifdef or @#ifndef
— PAC model: fixes to M_.pac.MODEL.ar (information about autoregressive part)
Ref. preprocessor#52
— PAC model: make detection of non-optimizing part more robust
Ref. preprocessor#50
— Fixes to Julia output
2020-11-02 12:52:13 +01:00
Sébastien Villemot
f46dfba961
Testsuite: workaround for glibc bug #19329
...
This bug is causing random crashes in the testsuite on our runners.
See https://sourceware.org/bugzilla/show_bug.cgi?id=19329
2020-10-23 12:35:35 +02:00
Sébastien Villemot
2a472a0a6b
Testsuite/MATLAB: output stderr to log file
2020-10-22 18:25:42 +02:00
Sébastien Villemot
5fab01c534
Perfect foresight: fix case where max lead/lag on exo is greater than max lead/lag on endo
...
Bug introduced in commit e21cb1ad6b
Ref. #1720
2020-10-21 19:12:22 +02:00
Sébastien Villemot
4e16ffcda2
Fortran MEX interface: minor fix for interface to dgemv
2020-10-21 18:17:41 +02:00
Sébastien Villemot
6f415dff61
Testsuite: add missing line continuation symbol in the list of .mod files
...
This was causing some tests to be skipped.
The bug had been introduced e7162a2a69
.
2020-10-21 16:36:18 +02:00
Sébastien Villemot
e21cb1ad6b
LMMCP: fix the purely backward and purely forward cases
...
Closes : #1720
2020-10-21 16:30:40 +02:00
Sébastien Villemot
4ba0f0a9c3
LMMCP: don’t report a wrong maxerror, rather put NaN
2020-10-20 18:27:19 +02:00
Sébastien Villemot
46da76c0ce
LMMCP: fix bug when periods=1
...
The fix in commit 24cc67e585
was incorrect.
2020-10-20 18:20:04 +02:00
Sébastien Villemot
87cc519321
LMMCP / linear perfect foresight: fix bug for models with a single equation
...
The routines use the find() function applied to a subset of columns of the
Jacobian, which in this case is a row vector. When passed a row vector, find()
returns row vectors (while it returns column vectors when passed a column
vector or a matrix). This case was not correctly handled.
2020-10-20 18:20:02 +02:00
Sébastien Villemot
df58037feb
Reporting: rename @graph class to @report_graph, to avoid name clash with MATLAB’s @graph
2020-10-20 14:39:47 +02:00
Sébastien Villemot
4c12f03637
Windows package: bump dependencies
2020-10-16 17:27:03 +02:00
Sébastien Villemot
ce5aa33a33
k-order DLL: no longer write journal file on-disk, unless options_.debug = true
...
Closes : #1735
2020-10-15 17:19:30 +02:00
Sébastien Villemot
e3207b1d8c
Extended path: remove ep.use_bytecode flag
...
It’s actually useless and complicates the code. Simply rely on
options_.bytecode.
Ref. #1742
2020-10-15 11:06:59 +02:00
Sébastien Villemot
10333f99e2
Fix extended_path + bytecode under Octave
...
Ref. #1742
2020-10-15 10:59:15 +02:00
Sébastien Villemot
71e3e0d49e
Fix extended_path with bytecode
...
By the way, document and enforce the fact that stochastic extended_path (i.e.
order > 0) is not compatible with either bytecode or block.
Closes : #1742
2020-10-14 17:25:58 +02:00
Sébastien Villemot
43311a230f
Testsuite: histval_initval_file_unit_tests.m is not a TLS file
2020-10-14 17:16:35 +02:00
Sébastien Villemot
8acdb9f7cc
Testsuite: MATLAB R2014a compatibility fixes
2020-10-08 17:26:17 +02:00
Sébastien Villemot
e7162a2a69
Block decomposition: new tests for mfs>0
...
Ref. #1726
2020-10-07 19:01:09 +02:00
Sébastien Villemot
e576dc8c81
Block decomposition: fix evaluation of recursive variables in solved blocks
...
Ref. #1726
2020-10-06 18:31:13 +02:00
Sébastien Villemot
a69d598b5f
Add the ability to automatically detect MATLAB version at configure time
...
It is thus no longer needed to pass the MATLAB_VERSION option to the configure
script when compiling from source.
2020-09-30 19:08:52 +02:00
Sébastien Villemot
fa12e5abfc
Provisions for MATLAB R2020b
2020-09-24 15:43:06 +02:00
Sébastien Villemot
b1f7924b19
Preprocessor update
...
— simplify external function C output
— internal change to SymbolTable::getTypeSpecificID()
— ensure that negative constants are never marked as temporary terms
2020-09-23 18:37:23 +02:00
Stéphane Adjemian (Charybdis)
4d8c8c407d
Fixed indentation.
2020-09-23 15:32:46 +02:00
Stéphane Adjemian (Charybdis)
202bf913c0
Cosmetic changes.
2020-09-23 13:56:08 +02:00
Stéphane Adjemian (Charybdis)
a40f30cada
Closes #1761 (Fixes for histval_initval_file)
2020-09-23 12:19:18 +02:00
Sébastien Villemot
d61f4166ad
Testsuite: add a test for a purely forward variable in block+bytecode mode
...
Closes : #1727
2020-09-22 16:46:58 +02:00
Sébastien Villemot
73253a0620
Bytecode + Block decomposition: fix crash with purely forward variables
...
After simulating a block containing purely forward variables (thus of type
“evaluate backward”), the it_ variable of the evaluator would be left in an
inconsistent state (typically 0, which means that taking the value of a lagged
variable would lead to an invalid read).
By the way, fix a symmetric problem for backward blocks (which could
potentially create a invalid read for purely backward models).
Ref. #1727
2020-09-22 16:45:44 +02:00
Sébastien Villemot
8803bc1479
Bytecode: minor improvement to debugging information
2020-09-22 16:42:33 +02:00
Michel Juillard
c366a8c3da
fix bugs
2020-09-20 16:52:31 +02:00
Michel Juillard
c2e43c0093
fix histval_initval_file unit tests
2020-09-20 11:11:26 +02:00
Michel Juillard
57c94a1c76
revise options checks
2020-09-19 19:17:42 +02:00
Michel Juillard
9e94252d1a
fix target values for periods
2020-09-19 12:18:24 +02:00
Michel Juillard
b6582c2d5f
fix handling firstsimulationperiod
2020-09-19 12:18:24 +02:00
Michel Juillard
91b4cfd3a8
fixes handling of periods in histval_file/initval_file
2020-09-19 12:14:43 +02:00
Sébastien Villemot
a9fea692e9
Preprocessor: allow 'use_dll' option to be specified on the command line
2020-09-18 15:20:00 +02:00
Sébastien Villemot
0ea2e40adf
Manual: remove compilation warning due to nograph entry being in two different .rst files
...
[skip ci]
2020-09-18 15:17:50 +02:00
Sébastien Villemot
f6e7c2d061
Manual: remove obsolete requirement for 'use_dll' on Windows
...
[skip ci]
2020-09-18 15:05:38 +02:00
Sébastien Villemot
b281d682f2
Manual: document default name for “shock_groups” blocks
...
By the way, fix the syntax description for the name (it needs *not* be quoted).
[skip ci]
2020-09-14 18:43:08 +02:00
Sébastien Villemot
9a726e6138
Dynare++ tutorial: add a note about the computation of IRFs when shocks are correlated
...
The treatment is different that that of Dynare. For more background, see
https://forum.dynare.org/t/difference-between-high-order-approx-in-dynare-and-dynare/16570/4
By the way, make a few minor modernizations.
[skip ci]
2020-09-09 17:04:16 +02:00
Sébastien Villemot
b9812a0ff0
Fix another issue with extended_path + bytecode
...
As reported in https://forum.dynare.org/t/extended-path-bytecode/16577
2020-09-08 13:13:00 +02:00
Sébastien Villemot
82ec87933a
Examples: convert some files to UTF-8
...
Those files were in ISO-8859-1 encoding, which is being phased out.
By the way, use typographic quotes.
[skip ci]
2020-09-07 17:24:53 +02:00