v4 parser: bug in trend_coeff

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@589 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
michel 2006-01-08 08:36:34 +00:00
parent 89f1118b49
commit 70dffd1518
1 changed files with 2 additions and 2 deletions

View File

@ -294,8 +294,8 @@ void ComputingTasks::set_trend_element (string name, string expression)
// int id = SymbolTable::getID(name);
if (type == eEndogenous)
{
*output << "tmp1 = strmatch(" << name << ",options_.varobs,'exact');\n";
*output << "options_.trend_coeffs{tmp1} = " << expression << ";\n";
*output << "tmp1 = strmatch('" << name << "',options_.varobs,'exact');\n";
*output << "options_.trend_coeffs{tmp1} = '" << expression << "';\n";
}
else
{