Fix bug in MATLAB/Octave output introduced in 3e1f9dbb82

master
Sébastien Villemot 2022-07-12 14:31:30 +02:00
parent 1d71386f01
commit 7fd78606ae
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 13 additions and 11 deletions

View File

@ -4106,13 +4106,14 @@ DynamicModel::writeSetAuxiliaryVariables(const string &basename, bool julia) con
<< comment << " Status : Computes Auxiliary variables of the dynamic model and returns a dseries" << endl
<< comment << endl
<< comment << " Warning : this file is generated automatically by Dynare" << endl
<< comment << " from model file (.mod)" << endl << endl
<< "@inbounds begin" << endl
<< output_func_body.str()
<< "end" << endl
<< "end" << endl;
<< comment << " from model file (.mod)" << endl << endl;
if (julia)
output << "end" << endl;
output << "@inbounds begin" << endl;
output << output_func_body.str()
<< "end" << endl;
if (julia)
output << "end" << endl
<< "end" << endl;
writeToFileIfModified(output, julia ? basename + "DynamicSetAuxiliarySeries.jl" : packageDir(basename) + "/" + func_name + ".m");
}

View File

@ -1751,13 +1751,14 @@ StaticModel::writeSetAuxiliaryVariables(const string &basename, bool julia) cons
<< comment << " Status : Computes static model for Dynare" << endl
<< comment << endl
<< comment << " Warning : this file is generated automatically by Dynare" << endl
<< comment << " from model file (.mod)" << endl << endl
<< "@inbounds begin" << endl
<< output_func_body.str()
<< "end" << endl
<< comment << " from model file (.mod)" << endl << endl;
if (julia)
output << "@inbounds begin" << endl;
output << output_func_body.str()
<< "end" << endl;
if (julia)
output << "end" << endl;
output << "end" << endl
<< "end" << endl;
writeToFileIfModified(output, julia ? basename + "SetAuxiliaryVariables.jl" : packageDir(basename) + "/" + func_name + ".m");
}