v4 parser: authorized listing dsge_prior_weight in estimated_params although it doesn't appear in the model

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@928 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
michel 2006-09-22 06:58:24 +00:00
parent fb30fd76ef
commit 2352ae1626
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ void ComputingTasks::setEstimatedElements(void)
string msg = "Unknown symbol: "+EstimParams->name;
error(msg.c_str());
}
if (SymbolTable::isReferenced(EstimParams->name) == eNotReferenced)
if (SymbolTable::isReferenced(EstimParams->name) == eNotReferenced & EstimParams->name != "dsge_prior_weight")
{
return;
}
@ -428,7 +428,7 @@ void ComputingTasks::setOsrParams(string tmp)
void ComputingTasks::runOsr(string tmp1)
{
*output << tmp1;
*output << "osr(var_list_,osr_params_,optim_weights_);\n";
*output << "osr(var_list_,osr_params_,obj_var_,optim_weights_);\n";
}
//------------------------------------------------------------------------------
void ComputingTasks::setOlrInst(string tmp)