nostrict option works for endval too

time-shift
Houtan Bastani 2013-09-16 17:24:17 -04:00
parent ebd9d9dee7
commit d8a64df886
2 changed files with 3 additions and 2 deletions

View File

@ -788,7 +788,7 @@ the Macro directive @code{@@#define} in a model file, @pxref{Macro-processing la
Allows Dynare to issue a warning and continue processing when
@enumerate
@item there are more endogenous variables than equations
@item an undeclared symbol is assigned in @code{initval}
@item an undeclared symbol is assigned in @code{initval} or @code{endval}
@end enumerate
@end table

View File

@ -404,7 +404,8 @@ ParsingDriver::init_val(string *name, expr_t rhs)
if (nostrict)
if (!mod_file->symbol_table.exists(*name))
{
warnings << "WARNING: discarding '" << *name << "' not recognized in initval statement" << endl;
warnings << "WARNING: discarding '" << *name
<< "' not recognized in initval or endval statement" << endl;
delete name;
return;
}