Commit Graph

725 Commits (beb7d42d748f9f0f5216ed7aca93dceb4f73df2c)

Author SHA1 Message Date
Stéphane Adjemia (Scylla) 650c78f99d
Merge branch 'master' into ecb-master 2018-11-30 21:34:56 +01:00
Sébastien Villemot 736d43c4e6
Bump minimal MATLAB version requirement to 7.9 (R2009b) 2018-11-13 15:59:16 +01:00
Sébastien Villemot c6f5c804d9
Gensylv MEX also needs MatIO (because Dynare++ code does) 2018-11-12 12:56:01 +01:00
Sébastien Villemot 331a27398a
Fix another memory leak in k-order DLL
Re Dynare/dynare#1490.
2018-11-08 17:30:48 +01:00
Sébastien Villemot 50a09a687e
C++11 modernization
Incidentally, fix a memory leak related to DynamicModelAC instantiation, using
a std::unique_ptr (see Dynare/dynare#1490).
2018-11-08 17:24:19 +01:00
Sébastien Villemot afc9f94854
On Windows, statically link the pthread library
Otherwise the DLL is dynamically linked against libwinpthread. This regression
was introduced by commit 671fe4bcd.
2018-11-07 14:38:04 +01:00
Sébastien Villemot 671fe4bcd4
Build system improvements on Windows (MinGW / MSYS2)
- Use the -static flag when linking Dynare++, so that shipping libquadmath and
  libgcc DLL in the installer is no longer needed.

- Use AM_CXXFLAGS and AM_LDFLAGS variables for changing flags, since CXXFLAGS
  and LDFLAGS are user variables. Also, this avoids passing these flags down to
  configure scripts in subdirectories.

- Check for the SZIP library in the configure test for the MatIO, this is
  needed under MSYS2.

- Statically link MatIO and GSL in MEX files for MATLAB, this is needed under
  MSYS2.
2018-11-06 12:17:56 +01:00
Stéphane Adjemia (Scylla) dcea7514d9
Merge branch 'master' into ecb-master 2018-10-24 18:31:31 +02:00
Sébastien Villemot ffb36e5713 Remove obsolete kludges for MinGW 2018-10-02 17:10:36 +02:00
Sébastien Villemot 59642c3312 C output of preprocessor now splits generated fcts into several smaller fcts
Adapt the k-order DLL as a consequence.
2018-10-01 16:13:12 +02:00
Sébastien Villemot feeda74dfb Remove spurious executable permission 2018-09-27 12:24:57 +02:00
Stéphane Adjemian(Charybdis) c9a38c4de7 Merge branch 'master' into ecb-master
Fixed conflicts:
 - tests/run_block_byte_tests_octave.m
2018-08-04 21:08:08 +02:00
Sébastien Villemot d03cc56587 solve_algo=7 and stack_solve_algo=2 are now allowed under Octave
The gmres() function has been implemented (actually since Octave 3.4.1!).
2018-08-02 15:20:39 +02:00
Stéphane Adjemian(Charybdis) 7d7449c775 Merge branch 'master' into ecb-master
Fixed conflicts:
	matlab/modules/dseries
2018-07-23 17:05:30 +02:00
Sébastien Villemot 932e5f946c Update preprocessor submodule
Adapt bytecode DLL as a consequence.
2018-07-18 17:52:44 +02:00
Stéphane Adjemian(Charybdis) 85a585c73e Merge branch 'master' into ecb-master+folder
Fixed conflicts in:
	tests/block_bytecode/run_ls2003.m
2018-07-10 10:18:55 +02:00
Sébastien Villemot cb46a2697e Fix invalid memory write in k-order DLL
The bug would show at order 3 when the last output argument (derivs) is not
requested (in practice every 3rd order solution without pruning). The DLL would
still attempt to write into it, causing an invalid memory access.
2018-07-02 16:37:46 +02:00
Sébastien Villemot b2c554623f Various fixes related to the new layout of generated files 2018-06-28 18:14:40 +02:00
Sébastien Villemot a1b8bd39b2 Move the location of various generated files on the filesystem
- M and MEX files are now under +${MODELNAME}/
- bytecode, C source and JSON now under ${MODELNAME}/model/
2018-06-27 17:03:39 +02:00
Houtan Bastani f5bf76deb5 fix mex build system for macOS 2018-06-27 15:04:33 +02:00
Houtan Bastani e9c631de7d Merge branch 'master' into ecb-master 2018-06-07 18:47:36 +02:00
Sébastien Villemot a71e0ebee4 Add a compile-time check for MATLAB version, as we already do for Octave 2018-06-06 14:31:25 +02:00
Houtan Bastani 6f6ef8fb30 Merge branch 'master' into ecb-master 2018-06-05 18:47:55 +02:00
Sébastien Villemot e1a3c40ef0 Fix compilation of MS-SBVAR DLL under Octave 4.4 2018-06-05 17:07:45 +02:00
Sébastien Villemot e669321eec Require C++14 for MEX files
Needed because bytecode DLL uses some preprocessor code which is C++14.
2018-06-05 11:34:41 +02:00
Houtan Bastani 689a9880f4 Merge branch 'master' into ecb-master 2018-05-17 17:07:49 +02:00
Sébastien Villemot 02084ce310 Remove qzcomplex Oct-file
It's actually not needed. The QZ complex decomposition can be obtained in
Octave on real matrices by casting them to the complex type.
2018-05-17 12:11:15 +02:00
Stéphane Adjemian(Charybdis) e62c2272b4 Merge remote-tracking branch 'github/master' into ecb-master
Fixed conflicts:
	matlab/modules/dates
2018-05-16 17:32:39 +02:00
Sébastien Villemot 3f674f0f26 Enforce minimal Octave version in the configure script 2018-05-16 10:50:27 +02:00
Sébastien Villemot e2c2f2d966 Remove fallbacks for ilu, linsolve and ordschur under Octave
These functions are all included in Octave 4.2.
2018-05-16 10:48:44 +02:00
Sébastien Villemot f665379fcc Kludge for bug in MinGW, that defines __STDC_UTF_16__ but not char16_t
This breaks the matrix.h of older MATLABs (e.g. R2009a). Also see <uchar.h>.
2018-05-15 19:29:17 +02:00
Sébastien Villemot fbddfc0aae Require C99 when compiling MEX files, since mjdgges now uses C99 features 2018-05-15 14:53:56 +02:00
Sébastien Villemot 7a2aa211bf Make mjdgges DLL compatible with MATLAB interleaved complex API
This API was introduced in MATLAB 9.4 (R2018a), because the internal
representation of complex numbers has changed.
2018-05-14 15:16:09 +02:00
Houtan Bastani 0617f58a14 Merge remote-tracking branch 'origin/master' into ecb-master 2018-02-26 18:17:30 +01:00
Houtan Bastani fdf9a8a453 move preprocessor to submodule 2018-02-16 16:44:16 +01:00
Stéphane Adjemian (Scylla) 108c10cdb2 Merge branch 'master' into ecb-master
Fixed conflicts:
	doc/userguide/models/fs2000ns_steadystate.m
	doc/userguide/models/fsdat.m
	matlab/modules/dseries
	mex/sources/estimation/tests/logposterior_dll_test/random_walk_metropolis_hastings_core.m
	mex/sources/estimation/tests/logposterior_dll_test/rawdata_euromodel_1.m
	mex/sources/estimation/tests/random_walk_metropolis_hastings_core.m
	mex/sources/estimation/tests/rawdata_euromodel_1.m
2017-09-28 10:33:17 +02:00
Houtan Bastani fb6a11f544 move estimation-dll to its own repository: https://github.com/DynareTeam/estimation-dll.git 2017-09-22 15:31:23 +02:00
Stéphane Adjemian (Charybdis) a59a2fae2d Merge branch 'master' into ecb-master 2017-06-29 13:33:29 +02:00
Sébastien Villemot 1ff5c3f571 Fix various typos (thanks lintian). 2017-06-28 15:06:54 +02:00
Houtan Bastani d8ffd5e83c Merge branch 'master' into ecb-master 2017-06-19 18:02:57 +02:00
Ferhat Mihoubi 119e5b4dfa Corrects bugs in bytecode related to the use of finite instead of isfinite and to mxMalloc tests 2017-06-05 18:51:43 +02:00
Stéphane Adjemian (Charybdis) 7d373f0d7e Merge branch 'master' into ecb-master 2017-06-03 14:51:28 +02:00
Stéphane Adjemian (Charybdis) ce990f10ae Fixed indentation if c and c++ files. 2017-06-01 19:58:32 +02:00
Stéphane Adjemian (Charybdis) 99cb731112 Fixed indentation of matlab files. 2017-06-01 19:43:18 +02:00
Stéphane Adjemian (Charybdis) e3769670df Updated AC_INIT 2017-05-19 18:54:32 +02:00
Stéphane Adjemian (Charybdis) 1bf81c9f5a Fixed copyright notices. 2017-05-18 18:36:38 +02:00
Stéphane Adjemian (Charybdis) b4448937cc Fixed indentation of c/h/cc/hh files. 2017-05-16 16:30:27 +02:00
Stéphane Adjemian (Charybdis) a53636e24e Fixed copyright notices. 2017-05-16 14:11:15 +02:00
Ferhat Mihoubi 981e31c8c3 Fix issues in bytecode with option extended_path related to the size of endo_simul and exo_simul
(cherry picked from commit ab7acc49e30fbcb292d63d58281581a308716b4c)
2017-05-08 18:40:18 +02:00
Ferhat Mihoubi e248d8bf59 Fix memory and periods issues in bytecode
(cherry picked from commit fa5dd681abcb3243a5ee9be1f71fdfc51bced1cd)
2017-05-08 18:39:44 +02:00