Remove obsolete stuff from pow/log aux vars
parent
d219d2b800
commit
35e77136c3
|
@ -386,48 +386,6 @@ SymbolTable::addMultiplierAuxiliaryVar(int index) throw (FrozenException)
|
||||||
return symb_id;
|
return symb_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
SymbolTable::addLogAuxiliaryVar(int index) throw (FrozenException)
|
|
||||||
{
|
|
||||||
ostringstream varname;
|
|
||||||
int symb_id;
|
|
||||||
varname << "AUX_LOG_" << index+1;
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
symb_id = addSymbol(varname.str(), eEndogenous);
|
|
||||||
}
|
|
||||||
catch (AlreadyDeclaredException &e)
|
|
||||||
{
|
|
||||||
cerr << "ERROR: you should rename your variable called " << varname.str() << ", this name is internally used by Dynare" << endl;
|
|
||||||
exit(EXIT_FAILURE);
|
|
||||||
}
|
|
||||||
|
|
||||||
aux_vars.push_back(AuxVarInfo(symb_id, avMultiplier, 0, 0, index));
|
|
||||||
return symb_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
|
||||||
SymbolTable::addPowAuxiliaryVar(int index) throw (FrozenException)
|
|
||||||
{
|
|
||||||
ostringstream varname;
|
|
||||||
int symb_id;
|
|
||||||
varname << "AUX_POW_" << index+1;
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
symb_id = addSymbol(varname.str(), eEndogenous);
|
|
||||||
}
|
|
||||||
catch (AlreadyDeclaredException &e)
|
|
||||||
{
|
|
||||||
cerr << "ERROR: you should rename your variable called " << varname.str() << ", this name is internally used by Dynare" << endl;
|
|
||||||
exit(EXIT_FAILURE);
|
|
||||||
}
|
|
||||||
|
|
||||||
aux_vars.push_back(AuxVarInfo(symb_id, avMultiplier, 0, 0, index));
|
|
||||||
return symb_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
SymbolTable::searchAuxiliaryVars(int orig_symb_id, int orig_lead_lag) const throw (SearchFailedException)
|
SymbolTable::searchAuxiliaryVars(int orig_symb_id, int orig_lead_lag) const throw (SearchFailedException)
|
||||||
{
|
{
|
||||||
|
|
|
@ -221,18 +221,6 @@ public:
|
||||||
\return the symbol ID of the new symbol
|
\return the symbol ID of the new symbol
|
||||||
*/
|
*/
|
||||||
int addMultiplierAuxiliaryVar(int index) throw (FrozenException);
|
int addMultiplierAuxiliaryVar(int index) throw (FrozenException);
|
||||||
//! Adds an auxiliary variable for log expression
|
|
||||||
/*!
|
|
||||||
\param[in] index Used to construct the variable name
|
|
||||||
\return the symbol ID of the new symbol
|
|
||||||
*/
|
|
||||||
int addLogAuxiliaryVar(int index) throw (FrozenException);
|
|
||||||
//! Adds an auxiliary variable for power expression
|
|
||||||
/*!
|
|
||||||
\param[in] index Used to construct the variable name
|
|
||||||
\return the symbol ID of the new symbol
|
|
||||||
*/
|
|
||||||
int addPowAuxiliaryVar(int index) throw (FrozenException);
|
|
||||||
//! Searches auxiliary variables which are substitutes for a given symbol_id and lead/lag
|
//! Searches auxiliary variables which are substitutes for a given symbol_id and lead/lag
|
||||||
/*!
|
/*!
|
||||||
The search is only performed among auxiliary variables of endo/exo lag.
|
The search is only performed among auxiliary variables of endo/exo lag.
|
||||||
|
|
Loading…
Reference in New Issue