Removed deprecated syntaxes.

time-shift
Stéphane Adjemian (Charybdis) 2015-08-12 19:03:29 +02:00
parent b2bf59e8da
commit 9556d37fd6
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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