From 46a2272ef929a7acbf276fea2c43089bfc7d0e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=28Charybdis=29?= Date: Thu, 29 Mar 2018 14:10:34 +0200 Subject: [PATCH] Added new member in model_ (julia output). temporaries.static and temporaries.dynamic are 4*1 vectors of integers, each element is the number of temporary variables used for to evaluate the residuals, the jacobian matrix, the hessian matrix and the matrix of third order derivatives. --- src/ModFile.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ModFile.cc b/src/ModFile.cc index 042f19ce..84230dc7 100644 --- a/src/ModFile.cc +++ b/src/ModFile.cc @@ -1336,6 +1336,8 @@ ModFile::writeExternalFilesJulia(const string &basename, FileOutputType output, jlOutputFile << "model_.static = " << basename << "Static.static!" << endl << "model_.dynamic = " << basename << "Dynamic.dynamic!" << endl + << "model_.temporaries.static = " << basename << "Static.tmp_nbr" << endl + << "model_.temporaries.dynamic = " << basename << "Dynamic.tmp_nbr" << endl << "if isfile(\"" << basename << "SteadyState.jl" "\")" << endl << " model_.user_written_analytical_steady_state = true" << endl << " model_.steady_state = " << basename << "SteadyState.steady_state!" << endl