Julia: move all generated files to the <basename>/model/julia/ subdirectory
parent
6af8a57f9f
commit
6aca84bfbb
|
@ -3547,7 +3547,7 @@ DynamicModel::writeSetAuxiliaryVariables(const string &basename, bool julia) con
|
|||
output << "end" << endl;
|
||||
|
||||
if (julia)
|
||||
writeToFileIfModified(output, basename + "DynamicSetAuxiliarySeries.jl");
|
||||
writeToFileIfModified(output, filesystem::path{basename} / "model" / "julia" / "DynamicSetAuxiliarySeries.jl");
|
||||
else
|
||||
{
|
||||
/* Calling writeToFileIfModified() is useless here since we write inside
|
||||
|
|
|
@ -866,7 +866,7 @@ DynamicModel::writeParamsDerivativesFile(const string &basename) const
|
|||
auto [tt_output, rp_output, gp_output, rpp_output, gpp_output, hp_output, g3p_output]
|
||||
{ writeParamsDerivativesFileHelper<output_type>() };
|
||||
|
||||
const filesystem::path filename {julia ? filesystem::path{basename + "DynamicParamsDerivs.jl"} : packageDir(basename) / "dynamic_params_derivs.m"};
|
||||
const filesystem::path filename {julia ? filesystem::path{basename} / "model" / "julia" / "DynamicParamsDerivs.jl" : packageDir(basename) / "dynamic_params_derivs.m"};
|
||||
ofstream paramsDerivsFile { filename, ios::out | ios::binary };
|
||||
if (!paramsDerivsFile.is_open())
|
||||
{
|
||||
|
|
|
@ -260,7 +260,7 @@ SteadyStateModel::writeSteadyStateFile(const string &basename, bool julia) const
|
|||
output << "end" << endl << "end" << endl;
|
||||
|
||||
if (julia)
|
||||
writeToFileIfModified(output, basename + "SteadyState2.jl");
|
||||
writeToFileIfModified(output, filesystem::path{basename} / "model" / "julia" / "SteadyState2.jl");
|
||||
else
|
||||
{
|
||||
/* Calling writeToFileIfModified() is useless here since we write inside
|
||||
|
|
|
@ -1206,7 +1206,7 @@ StaticModel::writeSetAuxiliaryVariables(const string &basename, bool julia) cons
|
|||
output << "end" << endl;
|
||||
|
||||
if (julia)
|
||||
writeToFileIfModified(output, basename + "SetAuxiliaryVariables.jl");
|
||||
writeToFileIfModified(output, filesystem::path{basename} / "model" / "julia" / "SetAuxiliaryVariables.jl");
|
||||
else
|
||||
{
|
||||
/* Calling writeToFileIfModified() is useless here since we write inside
|
||||
|
|
|
@ -225,7 +225,7 @@ StaticModel::writeParamsDerivativesFile(const string &basename) const
|
|||
{ writeParamsDerivativesFileHelper<output_type>() };
|
||||
// g3p_output is ignored
|
||||
|
||||
filesystem::path filename {julia ? filesystem::path{basename + "StaticParamsDerivs.jl"} : packageDir(basename) / "static_params_derivs.m"};
|
||||
filesystem::path filename {julia ? filesystem::path{basename} / "model" / "julia" / "StaticParamsDerivs.jl" : packageDir(basename) / "static_params_derivs.m"};
|
||||
ofstream paramsDerivsFile { filename, ios::out | ios::binary };
|
||||
if (!paramsDerivsFile.is_open())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue