explicitly close output streams

issue#70
Houtan Bastani 2018-03-02 18:39:16 +01:00
parent feb5b93eea
commit 204457cd86
2 changed files with 4 additions and 0 deletions

View File

@ -4006,6 +4006,8 @@ DynamicModel::writeSetAuxiliaryVariables(const string &basename, const bool juli
<< comment << " Warning : this file is generated automatically by Dynare" << endl
<< comment << " from model file (.mod)" << endl << endl
<< output_func_body.str();
output.close();
}
void

View File

@ -2162,6 +2162,8 @@ StaticModel::writeSetAuxiliaryVariables(const string &basename, const bool julia
<< comment << " Warning : this file is generated automatically by Dynare" << endl
<< comment << " from model file (.mod)" << endl << endl
<< output_func_body.str();
output.close();
}
void