Commit Graph

15031 Commits (7dd2dd5e24a343fbeaf3522ea5e535c27d8b9f95)

Author SHA1 Message Date
Sébastien Villemot b29dde227d
Preprocessor: various refactorings (mainly bytecode) 2022-07-08 16:05:33 +02:00
Sébastien Villemot f1d66eb756
Preprocessor update
– Fix interaction of temporary terms with steady_state operator.
  Incidentally, this implies that external functions can no longer be used inside
  steady_state operators.
– JSON output: remove duplicate “rhs” field when RHS of equation is non-zero
  constant
– Bytecode: remove hack for exogenous deterministic index
2022-07-05 17:10:44 +02:00
Sébastien Villemot 572fed3994
Merge branch 'dyn_forecast' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2051
2022-07-05 17:09:51 +02:00
Sébastien Villemot 84d744ea75
Merge branch 'DM' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2049
2022-07-05 17:09:31 +02:00
Sébastien Villemot b3cff2d34d
Bytecode: remove incomplete/buggy support for exogenous deterministic 2022-07-05 13:02:17 +02:00
Sébastien Villemot 888a87312d
Enable -Wunused-parameter for C++ MEX
Except for libdynare++, since Dynare++ is not ready (and is probably not worth
fixing by adding [[maybe_unused]] tags).
2022-07-05 12:12:53 +02:00
Sébastien Villemot 8be6f55bf6
Bytecode MEX: remove unused function parameters 2022-07-05 12:12:08 +02:00
Sébastien Villemot b05ef5dd7f
Bytecode MEX: remove unused function 2022-07-05 12:11:32 +02:00
Sébastien Villemot 218bb1a15f
k_order_welfare MEX: check number of arguments 2022-07-05 11:55:40 +02:00
Sébastien Villemot 0a9dc0137a
k_order_welfare MEX: fix documentation of output arguments 2022-07-05 11:55:33 +02:00
Johannes Pfeifer 35a25b8fb5 dyn_forecast.m: gracefully exit if decision rules and remove unused output argument 2022-07-04 17:33:20 +02:00
Sébastien Villemot 4195fa779d
Preprocessor update
– dyn_forecast: remove unused output argument
– Various refactorings
2022-07-04 15:20:40 +02:00
Sébastien Villemot fea1994a8e
Merge branch 'arima' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2048
2022-07-04 15:16:22 +02:00
Sébastien Villemot 5d048b998d
Merge branch 'cosmetics' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2047
2022-07-04 15:15:47 +02:00
Sébastien Villemot deb0f8b401
Merge branch 'ramsey_discount' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2046
2022-07-04 15:15:08 +02:00
Johannes Pfeifer 0f64652a73 identification_checks.m: fix comment 2022-06-28 09:44:05 +02:00
Johannes Pfeifer dbde8294cd disp_identification.m: account for non-boolean indicator
Related https://git.dynare.org/Dynare/dynare/-/issues/1860
2022-06-28 09:43:46 +02:00
Johannes Pfeifer 5788f1bc71 dynare_solve: deal with Dulmage-Mendelsohn decomposition returns a non-square block
Related to https://git.dynare.org/Dynare/dynare/-/issues/1851
2022-06-27 15:30:14 +02:00
Johannes Pfeifer 76885870ef testsuite: provide analytical steady state to unit root models instead of relying on initial values 2022-06-27 15:19:30 +02:00
Johannes Pfeifer 74672bb294 DsgeSmoother.m: delete redundant line 2022-06-27 11:23:19 +02:00
Johannes Pfeifer 77d6782cb4 evaluate_steady_state.m: check whether planner_discount is actually set for ramsey 2022-06-27 11:17:15 +02:00
Sébastien Villemot e9bb370ada
Preprocessor: bytecode refactorings 2022-06-24 14:11:04 +02:00
Sébastien Villemot 8dba4ec68c
Bytecode: minor fixes to debug mode 2022-06-24 12:53:19 +02:00
Sébastien Villemot 232d43d38b
Windows and macOS packages: bump to x13as version 1.1 build 58 2022-06-22 14:11:36 +02:00
Sébastien Villemot 8a0eb76b1b
Use operator""s to replace some calls to std::string constructor
By the way, remove other unnecessary calls to that constructor.
2022-06-22 12:51:08 +02:00
Sébastien Villemot 0107365f6a
Bytecode: stop using unsigned integers where signed ones avoid unnecessary casts 2022-06-20 17:52:01 +02:00
Sébastien Villemot 8bee62fa5e
Bytecode: directly use several enums inside instruction classes 2022-06-20 17:51:59 +02:00
Stéphane Adjemian (Charybdis) 584e661fff
Ensure that the ordering of the exogenous variables is correct...
in model inversion routines.
2022-06-17 17:48:00 +02:00
Stéphane Adjemian (Charybdis) f19ab66bab
Fix precision issue.
Introduced in patch 8b197bf71c which incidentally reduced the precision to six digits.
2022-06-17 16:48:35 +02:00
Sébastien Villemot a2d0ac3586
Bytecode: remove unused expression types 2022-06-17 16:32:59 +02:00
Sébastien Villemot 0719f749e7
Bytecode: remove unused opcodes 2022-06-17 16:32:50 +02:00
Sébastien Villemot 6dd871afbe
Preprocessor: build system update following header split 2022-06-16 20:42:26 +02:00
Sébastien Villemot 5ccd5f2613
Revert "More explicit message when the Dulmage-Mendelsohn decomposition returns a non-square block"
This reverts commit fa71d4712d.

Ref. #1851
2022-06-16 18:05:14 +02:00
Sébastien Villemot 3cc4aeb826
Preprocessor: split CodeInterpreter.hh into two headers 2022-06-16 18:05:00 +02:00
Sébastien Villemot 32cf926ef8
Macro-variables defined without a value are now set to “true”
They were previously set to 1.

Ref. preprocessor#43
2022-06-16 16:52:50 +02:00
Sébastien Villemot ec6ce95efd
Manual: fix return value of “in” macro-operator
It returns a boolean, not a logical.
2022-06-16 16:50:01 +02:00
Sébastien Villemot fa71d4712d
More explicit message when the Dulmage-Mendelsohn decomposition returns a non-square block
Closes: #1851
2022-06-16 15:53:45 +02:00
Sébastien Villemot 9323338323
Preprocessor: rename “parallel_slave_open_mode” option to “parallel_follower_open_mode”
Ref. preprocessor#86

Also make more terminology fixes in the manual (master/slave →
leader/follower), in complement to !1976.
2022-06-15 15:47:34 +02:00
Sébastien Villemot 1bb87538be
Merge branch 'doc_parallel' of git.dynare.org:JohannesPfeifer/dynare
Ref. !1976
2022-06-15 15:42:05 +02:00
Sébastien Villemot 06f665e231
Perfect foresight: LBJ now available under stack_solve_algo=1 (with/without block/bytecode)
Previously, LBJ was available:

– under stack_solve_algo=6 when neither block nor bytecode were present
– under stack_solve_algo=1 with either block or bytecode (but the documentation
  was not making it clear that it was LBJ)

This commit merges the two values for the option, and makes them
interchangeable. LBJ should now be invoked with stack_solve_algo=1 (but
stack_solve_algo=6 is kept for compatibility, and is a synonymous).
2022-06-15 15:06:33 +02:00
Sébastien Villemot 9cc5a5576e
Bytecode: some clean ups around checks for “stack_solve_algo” value 2022-06-15 14:28:41 +02:00
Sébastien Villemot 909aaac7c6
Preprocessor update
– Block decomposition: fix crash when a variable appears in an equation but has
  zero symbolic derivative
– Correctly clean up options list after a “pac_model” statement
– A few optimizations
2022-06-13 16:54:58 +02:00
Sébastien Villemot e6c35f205d
Windows package: bump dependencies
In particular, upgrade the embedded compiler to GCC 12.
2022-06-09 11:54:30 +02:00
Sébastien Villemot 041ec25738
Merge branch 'decomp' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2044
2022-06-08 18:35:32 +02:00
Sébastien Villemot 323c316409
Preprocessor: add provisions for Apple Silicon package 2022-06-08 18:35:27 +02:00
Johannes Pfeifer 1b4a4c8778 shock_decomposition.m: correctly pass initial date for plotting 2022-06-08 16:03:36 +02:00
Sébastien Villemot cd284a4e36
Merge branch 'dseries' of git.dynare.org:JohannesPfeifer/dynare
Ref. !2043
2022-06-07 18:03:06 +02:00
Sébastien Villemot dfcfdda318
Enable more compiler warnings for C++ 2022-06-07 18:01:58 +02:00
Sébastien Villemot b7c70fd99e
Dynare++: add a few parentheses to make GCC happy with -Wparentheses
I’m not sure that the intent for the hash function was actually what is
currently in the code, but it’s not worth improving this given that we want to
get rid of Dynare++ and the performance impact is probably negligible.
2022-06-07 18:01:05 +02:00
Johannes Pfeifer 4fc644c322 dseries: expand documentation on loading Excel files 2022-06-07 17:59:46 +02:00