Johannes Pfeifer
643face6ed
bug: do not remove +subfolder with fast option
...
Otherwise, expected files are not present
2023-10-20 15:42:44 +02:00
Johannes Pfeifer
fb8ff758f9
By default display preprocessor output line by line instead of only at the end
...
Allows judging how long individual steps take for big models
2023-10-20 15:42:05 +02:00
Sébastien Villemot
9eaf1510f6
Bytecode: make some parameters of Interpreter::Init_Matlab_Sparse() as const
2023-10-20 09:41:01 -04:00
Sébastien Villemot
093a547684
Bytecode: simplify Interpreter::compute_complete()
2023-10-20 09:38:03 -04:00
Sébastien Villemot
0bfcc6d2f5
Bytecode: simplify Interpreter::Init_UMFPACK_Sparse_Simple()
2023-10-19 17:34:06 -04:00
Sébastien Villemot
860285b8b8
Bytecode: simplify Interpreter::Init_Matlab_Sparse_Simple()
2023-10-19 17:34:05 -04:00
Sébastien Villemot
233d0815a6
Bytecode: simplify Interpreter::Init_UMFPACK_Sparse()
2023-10-19 17:33:24 -04:00
Sébastien Villemot
dc6a84196a
Bytecode: simplify Interpreter::Init_Matlab_Sparse()
2023-10-19 17:01:51 -04:00
Sébastien Villemot
88a0f67585
Bytecode: simplify Interpreter::Init_GE()
2023-10-19 16:58:14 -04:00
Sébastien Villemot
24fc3854e2
Bytecode: simplify Interpreter::Singular_display()
2023-10-19 16:55:51 -04:00
Sébastien Villemot
115a0a8e5d
Bytecode: simplify Interpreter::Read_SparseMatrix()
2023-10-19 16:52:48 -04:00
Sébastien Villemot
e5bf3f79b3
Bytecode: simplify Interpreter::fixe_u()
2023-10-19 16:48:00 -04:00
Sébastien Villemot
197347c870
Bytecode: merge two methods
2023-10-19 16:43:40 -04:00
Sébastien Villemot
e104318e6b
Bytecode: simplify Interpreter::Simulate_Newton_Two_Boundaries()
2023-10-19 16:38:51 -04:00
Sébastien Villemot
68cee02eb5
Bytecode: simplify Interpreter::check_for_controlled_exo_validity()
2023-10-19 16:33:54 -04:00
Sébastien Villemot
fdb3cd0623
Bytecode: simplify Interpreter::compute_complete()
2023-10-19 16:31:50 -04:00
Sébastien Villemot
8e74322325
Bytecode: rename a method for clarity
2023-10-19 15:58:33 -04:00
Sébastien Villemot
af1985d569
Bytecode: mark function as static
2023-10-19 15:56:55 -04:00
Sébastien Villemot
fd16bbe493
Bytecode: simplify Interpreter::initializeTemporaryTerms()
2023-10-19 15:56:39 -04:00
Sébastien Villemot
6809819961
Bytecode: simplify Interpreter::compute_complete_2b()
2023-10-19 15:47:10 -04:00
Sébastien Villemot
bbcbcd1eed
Bytecode: improve interface of methods for looking through Jacobian sparse matrix
2023-10-19 14:50:07 -04:00
Sébastien Villemot
b747eff473
Bytecode: remove unused method
2023-10-19 14:19:01 -04:00
Sébastien Villemot
a9c581e2bc
No longer forbid bytecode with order=2 or k_order_solver
...
The two are now compatible, even though the bytecode representation will not be
used. Print a warning to make this explicit.
2023-10-19 14:10:43 -04:00
Sébastien Villemot
846ed7e829
Bytecode: merge class dynSparseMatrix into Interpreter
...
These two classes were so entangled that their separation was meaningless.
2023-10-19 13:56:10 -04:00
Sébastien Villemot
654b4e57a2
Bytecode: remove several unused class members of SparseMatrix
2023-10-19 10:59:23 -04:00
Sébastien Villemot
06ac452459
Cosmetics: remove empty list of parameters for lambda functions
2023-10-19 09:56:55 -04:00
Sébastien Villemot
ed4824f956
Merge branch 'zero-moments-tolerance' of git.dynare.org:wmutschl/dynare
...
Ref. !2199
2023-10-19 08:35:48 -04:00
Sébastien Villemot
9ef3f7d0ed
Testsuite: fix test comparison value in pfwee_learnt_in.mod
...
It would fail on some processors, due to tiny floating point discrepancies.
2023-10-18 21:18:52 -04:00
Willi Mutschler
da4bc40e66
Make undocumented zero_moments_tolerance option local to disp_moments
...
See discussion in https://git.dynare.org/Dynare/preprocessor/-/merge_requests/85
2023-10-18 23:27:45 +02:00
Sébastien Villemot
5145bd0708
New option “relative_to_initval” to “mshocks” block
2023-10-18 16:45:06 -04:00
Sébastien Villemot
d78dea3086
Use __builtin_unreachable() to silent some GCC warnings
...
This is cleaner than using exit() for that purpose.
2023-10-18 14:28:54 -04:00
Sébastien Villemot
daa6b5569d
mshocks: better match to the semantics given in the manual
...
Ensure that the block is always interpreted multiplicatively relative to the
steady state, and not relative to the pre-existing shock value (if there was
already a shock declared for the same exogenous and period(s)).
2023-10-18 14:28:54 -04:00
Sébastien Villemot
357076feb4
Merge branch 'macos-installer-website' into 'master'
...
CI: deploy unstable versions of macOS arm64
See merge request Dynare/dynare!2198
2023-10-18 15:45:16 +00:00
Willi Mutschler
e03d6f3c1f
CI: deploy unstable versions of macOS arm64
2023-10-18 02:34:31 +02:00
Sébastien Villemot
39f9d4352a
The “mshocks” block now accepts the “learnt_in” option
2023-10-17 17:24:15 -04:00
Sébastien Villemot
66ccb3b3d3
Manual: fix typo in description of “multiply” keyword in “shocks(learnt_in=…)” block
...
Also add a missing word.
2023-10-17 17:19:20 -04:00
Sébastien Villemot
113cfb9c47
Merge branch 'macos-installer' of git.dynare.org:wmutschl/dynare
...
Ref. !2197
2023-10-17 09:26:47 -04:00
Sébastien Villemot
9a0462a8a6
Bytecode: remove a couple of useless casts
2023-10-16 18:06:42 -04:00
Sébastien Villemot
06a7acf19b
Bytecode: enforce consistent typing of size variables
2023-10-16 18:00:11 -04:00
Sébastien Villemot
651fed87be
Bytecode: remove warnings about narrowing (-Wnarrowing)
2023-10-16 17:58:36 -04:00
Sébastien Villemot
b0fa610357
Bytecode: remove warnings about uninitialized variables (-Wmaybe-uninitialized)
...
By the way, in the dynamic case, ensure that solve_algo variable corresponds to
options_.solve_algo; it would previously correspond to
options_.stack_solve_algo, while there is already a separate stack_solve_algo
variable for that purpose.
2023-10-16 17:43:20 -04:00
Willi Mutschler
fb63a8eadb
macOS installer: fix typo in welcome page
2023-10-16 22:12:09 +02:00
Sébastien Villemot
eae9902cb8
Bytecode: restrict scope of some variables
2023-10-16 15:39:13 -04:00
Sébastien Villemot
3e5591d41f
New “static_mfs” option to the “model” block (and the “model_options” command)
2023-10-16 11:57:02 -04:00
Sébastien Villemot
4875554a39
Perfect foresight homotopy: make marginal linearization more robust
...
For marginal linearization, an extra simulation is needed. This extra
simulation is first computed using the first simulation as guess value. If that
does not work, the present commits adds an additional attempt for computing
that extra simulation, using a full homotopy loop from the beginning.
As a consequence, the present commits puts the homotopy loop in a dedicated
function.
2023-10-13 15:31:44 -04:00
Sébastien Villemot
2ae485705e
Perfect foresight homotopy: turn a nested function into a local one
...
The behaviour of local functions is easier to understand, since they do not
have access to the workspace of the caller.
2023-10-13 14:40:45 -04:00
Sébastien Villemot
4f74ceb937
Testsuite: fix issue with Octave in a Wayland desktop session
...
If under a Wayland desktop session, some graphics would be displayed on the
screen, despite Octave being run in the virtual X11 frame buffer (xvfb).
Moreover, some unexplained random crashes would occur.
This commit ensures that Wayland is never used when running the testsuite.
By the way, add a command to explain why xvfb-run is needed and the
--no-window-system option cannot be run (see commit
96346b77e5
).
2023-10-13 14:39:55 -04:00
Sébastien Villemot
cc7c024389
Perfect foresight homotopy: display the full output of every iteration
...
As a consequence, print the full iterations summary table after each iteration.
2023-10-13 09:19:10 -04:00
Sébastien Villemot
9ebd8a8372
Make perfect foresight hotomopy loop more readable
...
Only modify oo_ when the homotopy procedure is finished, now that oo_ is no
longer an input to perfect_foresight_solver_core.
By the way, fix the treatment of the exogenous steady state (it is now set
in a consistent way with the endogenous steady state, if the shock is not
simulated up to 100%).
Also fix the initial guess when doing a second attempt at recomputing the
terminal steady state and failing (in the absence of a permanent shock). It was
supposed to use the initial steady state as an initial guess for that second
attempt (through oo_.steady_state), but since that latter variable was modified
in the loop, it would actually correspond to the same initial guess as in the
first attempt.
2023-10-13 09:16:37 -04:00
Sébastien Villemot
e26f3f5d06
Build system: remove trailing space in parsed Octave version
2023-10-12 16:00:09 -04:00