Removed deprecated syntaxes.
parent
b2bf59e8da
commit
9556d37fd6
|
@ -30,7 +30,7 @@ function dynare(modfile)
|
|||
run(`$preprocessor $modfile language=julia output=dynamic`)
|
||||
|
||||
# Load module created by preprocessor
|
||||
basename = split(modfile, ".mod", false)
|
||||
basename = split(modfile, ".mod"; keep=false)
|
||||
require(basename[1])
|
||||
end
|
||||
|
||||
|
|
|
@ -2934,8 +2934,15 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
|
|||
}
|
||||
|
||||
// Writing initialization for some other variables
|
||||
output << modstruct << "exo_names_orig_ord = [1:" << symbol_table.exo_nbr() << "];" << endl
|
||||
<< modstruct << "maximum_lag = " << max_lag << ";" << endl
|
||||
if (!julia)
|
||||
{
|
||||
output << modstruct << "exo_names_orig_ord = [1:" << symbol_table.exo_nbr() << "];" << endl ;
|
||||
}
|
||||
else
|
||||
{
|
||||
output << modstruct << "exo_names_orig_ord = collect(1:" << symbol_table.exo_nbr() << ");" << endl ;
|
||||
}
|
||||
output << modstruct << "maximum_lag = " << max_lag << ";" << endl
|
||||
<< modstruct << "maximum_lead = " << max_lead << ";" << endl;
|
||||
|
||||
output << modstruct << "maximum_endo_lag = " << max_endo_lag << ";" << endl
|
||||
|
|
Loading…
Reference in New Issue