Commit Graph

2944 Commits (4.7)

Author SHA1 Message Date
Sébastien Villemot 7b3df21f11
DataTree::operator=(): fix crash when symbol ID ordering of model local variables does not correspond to the recursive ordering in the model block
Ref. dynare#1782
2021-04-16 17:34:13 +02:00
Sébastien Villemot e3c716faba
CI: build GNU/Linux ARM64 binary 2021-04-06 16:23:54 +02:00
Sébastien Villemot 9f6df25a52
CI: streamline compilation commands
— add “-s” to LDFLAGS instead of manually calling strip
— on GNU/Linux, do not pass “-static” to LDFLAGS. We can dynamically link
  against glibc, since in Artifacts.toml we explicitly mention that we compile
  for a glibc system (and not musl)
— use --host=i686-linux-gnu to compile for GNU/Linux 32-bit, instead of passing “-m32”
  N.B.: Under Debian, g++-i686-linux-gnu must be installed. Otherwise this will
  silently use the 64-bit compiler
— for symmetry, use --host=x86_64-linux-gnu for GNU/Linux 64-bit
— on macOS, pass “-static-libgcc” through LDFLAGS rather than CXXFLAGS; this
  requires setting CC to gcc-10
— use better names for the jobs
2021-04-06 16:23:50 +02:00
Sébastien Villemot e6194afd7b
CI: another bugfix in generated Artifacts.toml 2021-04-02 18:22:05 +02:00
Sébastien Villemot 748e3054cd
CI: bugfix in generated Artifacts.toml 2021-04-02 18:15:53 +02:00
Sébastien Villemot 77cc649365
CI: simplify Julia jobs by creating Artifacts.toml on eris 2021-04-02 18:04:12 +02:00
Sébastien Villemot 35a66f22fb
CI: set “allow_failure: true” for the manual deploy job
Otherwise the pipeline will remain blocked until someone manually starts the
deploy job (see documentation of “rules” in Gitlab CI ref.).
2021-04-02 17:50:19 +02:00
Sébastien Villemot 880c7d9b2a
CI: add ability to generate Artifacts.toml for Julia 2021-04-02 17:37:21 +02:00
MichelJuillard c2009e2012
fix set_auxiliary_variables.jl 2021-04-01 17:05:13 +02:00
MichelJuillard 6662d8014e
fix writeJsonOutput for load_params_and_steady_state 2021-04-01 17:05:13 +02:00
Michel Juillard fd979f625a
add maximum lead and lag to modfile.json 2021-04-01 17:05:13 +02:00
Michel Juillard c9dd241f5b
add varobs statement to JSON output 2021-04-01 17:05:12 +02:00
Michel Juillard 50a2e7c44f
Add escape codes in NativeStatement and VerbatimStatement writeJsonOutput() method 2021-04-01 17:05:10 +02:00
Sébastien Villemot fba113d82b
CI: bump Boost version used for Windows binaries 2021-03-11 10:45:23 +01:00
Sébastien Villemot 29b3b744ef
Remove spurious space produced when parsing key/value pairs
Introduced in e46168db66.
2021-02-26 12:28:06 +01:00
Stéphane Adjemian (Charybdis) f0d67b01dd
Honour bi-annual dates in mod file. 2021-02-26 09:30:02 +01:00
Sébastien Villemot 5581052451
Add particle_filter_options option to estimation
Ref. #59
2021-02-23 16:54:36 +01:00
Sébastien Villemot e46168db66
Simplify parsing of lists of key/value pairs options 2021-02-23 16:49:11 +01:00
Sébastien Villemot 54365b16ed
Remove unfinished “occbin” option to perfect_foresight_solver and extended_path
Partially reverts f914837aff and
567156aad4.
2021-02-22 16:22:17 +01:00
Sébastien Villemot 825b9ee8ef
Fix bugs introduced in d3e115194b
Ref. #65
2021-02-19 20:29:18 +01:00
Sébastien Villemot 4798a5e2bc
Cosmetic change 2021-02-19 20:09:48 +01:00
Sébastien Villemot ca4b1ba4ed
Remove time subscript in LaTeX output of model-local variables
See https://forum.dynare.org/t/tex-output-unwanted-subscript-t/16072
2021-02-19 17:45:58 +01:00
Sébastien Villemot d3e115194b
Fix output write_latex_original_model for model-local variables
Those variables were substituted out by early substitution methods (which are
also called on the original model, for an unknown reason).

Closes: #65
2021-02-19 17:45:02 +01:00
Sébastien Villemot 50782694a0 Merge branch 'zero_moments_tolerance' into 'master'
Add interface to set zero_moments_tolerance

See merge request Dynare/preprocessor!34
2021-02-18 17:44:31 +00:00
Willi Mutschler 071a46a798
Add interface to set zero_moments_tolerance
Useful in identification and method_of_moments toolbox to set the tolerance which replaces very small numbers by hard zeros in unconditional second moments (particularly in pruned_state_space_system.m and disp_moments.m)
2021-02-16 16:29:57 +01:00
Sébastien Villemot 2781e3e6f6
A few modernizations using clang-tidy 2021-02-10 16:48:46 +01:00
Sébastien Villemot 9274675efb
Allow booleans in optimization options list
Closes: #63
2021-02-10 16:18:58 +01:00
Sébastien Villemot 1865f6536b Merge branch 'savecomputingtime' into 'master'
Fix bug with oo_.time

See merge request Dynare/preprocessor!33
2021-02-04 16:01:00 +00:00
Willi Mutschler f7cd6dbf0a
🐛 save oo_.time also in _results.mat 2021-02-04 10:48:59 +01:00
Sébastien Villemot 702cf62ee3
Declare some methods as const 2021-02-03 18:09:11 +01:00
Sébastien Villemot 234fcd1d2b
Remove obsolete stuff from bytecode 2021-02-01 14:46:08 +01:00
Sébastien Villemot 754a1a464d
Use default member init
Performed using modernize-use-default-member-init from clang-tidy.

https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-default-member-init.html
2021-02-01 12:44:24 +01:00
Sébastien Villemot 4ee89d6e70
Use more auto keyword
Performed using modernize-use-auto from clang-tidy.

https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-auto.html
2021-02-01 12:42:59 +01:00
Sébastien Villemot 07391e0f9f
Remove unused kludge 2021-02-01 12:07:33 +01:00
Sébastien Villemot 89e2daf7c7
C++17 modernization: convert the remaining enums to enum classes 2021-02-01 12:05:06 +01:00
Sébastien Villemot ce09f6620a Merge branch 'savecomputingtime' into 'master'
Save total computing time into oo_

See merge request Dynare/preprocessor!32
2021-01-28 15:45:31 +00:00
Willi Mutschler c79ae5d4bd
Save 'Total computing time' into oo_.time 2021-01-28 11:28:41 +01:00
Johannes Pfeifer ad22e62874
filter_initial_state: Port lost preprocessor commits from https://git.dynare.org/JohannesPfeifer/dynare/-/commits/filter_initial_state 2021-01-26 16:03:04 +01:00
Sébastien Villemot 7468b4d8d7
Remove more stuff related to unfinished decomposition in linear and nonlinear blocks
Ref. #39, dynare!1626
2021-01-25 18:13:35 +01:00
Sébastien Villemot af9bd8f109
Remove the unfinished decomposition in linear and nonlinear blocks
Also remove the det_cond_forecast interface, that was related to it.

Ref. dynare!1626
Closes: #39
2021-01-25 18:03:37 +01:00
Sébastien Villemot 1e5de7d71e
Fix typo
Introduced in 4c14dc3fbf.
2021-01-22 14:20:52 +01:00
Sébastien Villemot 4c14dc3fbf
Macro processor: gracefully fail when argument to @#ifdef/@#ifndef is not a variable name
Ref. dynare#1771
2021-01-22 12:20:13 +01:00
Sébastien Villemot ec66768a63
Forbid exogenous deterministic variables with a lead or lag
Ref. dynare#1765
2021-01-22 11:59:44 +01:00
Sébastien Villemot ab656f2d84
macOS/use_dll: upgrade to gcc-10 compiler 2021-01-13 15:42:09 +01:00
Sébastien Villemot a0d12310cb
macOS/use_dll: drop -mmacosx-version-min=10.9 flag
The MEX files are not intended for distribution to other systems.
2021-01-13 15:42:09 +01:00
Sébastien Villemot c91178e3e3
macOS/use_dll: no longer pass -arch x86_64, in preparation for ARM support 2021-01-13 15:42:09 +01:00
Stéphane Adjemian (Charybdis) 7a8446e836
Added call to a routine filling the fields required by some nonlinear solvers.
At some point this task might be delegated to the preprocessor.

(cherry picked from commit ca230d0902eadeb89ab705cf66790ffa2f135192)
2021-01-12 19:50:37 +01:00
Willi Mutschler a87b2753ed
MoM: Add option analytic_jacobian 2021-01-08 18:57:06 +01:00
Sébastien Villemot 8e03f17350
Cleanup the “output” option
— output Julia files as soon as “language=julia” is passed, independently of
  the value of the “output” option
— drop the “dynamic” and “first” values of the “output” option, since they
  actually do nothing
— obey the “output” option even in the deterministic case

Ref. dynare#1600
2021-01-08 18:51:48 +01:00
Sébastien Villemot f5760c33ea
CI: on macOS, enforce flex and bison from Homebrew 2021-01-07 18:35:02 +01:00