"Johannes Pfeifer " jpfeifer@gmx.de writes:
erroneously defining a complex parameter like sigma=(-0.007)^0.5 as in the attached mod-file crashes dynare_m.exe in Windows. Sometimes it displays
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Assertion failed!
Program: C:\Dynare\4.3.0\matlab\dynare_m.exe
File: NumericalConstants.cc, Line 47
Expression: val >= 0 || isnan(val)
I can't replicate the crash in the preprocessor on both GNU/Linux and Windows.
However in ppp.m I have "M_.params(1)=nan;" (which is consistent) and Dynare crashes later.
Concerning the crash that you get in the preprocessor, the problem is not that the preprocessor refuses to run, but rather that the error message is not explicit enough. It is however not obvious how to improve the situation, and I cannot do anything as long as I can replicate your assertion error in the preprocessor.