Preprocessor: use NaN() for initializing vector of parameters

issue#70
Sébastien Villemot 2011-04-27 12:07:13 +02:00
parent 5b8cf01d48
commit 6c37f6def8
1 changed files with 1 additions and 1 deletions

View File

@ -2519,7 +2519,7 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
<< "oo_.exo_det_steady_state = zeros(" << symbol_table.exo_det_nbr() << ", 1);" << endl;
}
if (symbol_table.param_nbr())
output << "M_.params = repmat(NaN," << symbol_table.param_nbr() << ", 1);" << endl;
output << "M_.params = NaN(" << symbol_table.param_nbr() << ", 1);" << endl;
// Write number of non-zero derivatives
// Use -1 if the derivatives have not been computed