From c6a33a96f11e5b31fb162e84ff28b4522022c147 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Mon, 25 Jul 2011 10:21:02 +0200 Subject: [PATCH] remove writing of getPowerDeriv M function from block code functions --- DynamicModel.cc | 1 - StaticModel.cc | 4 ---- 2 files changed, 5 deletions(-) diff --git a/DynamicModel.cc b/DynamicModel.cc index f37bf240..d8426fb6 100644 --- a/DynamicModel.cc +++ b/DynamicModel.cc @@ -1034,7 +1034,6 @@ DynamicModel::writeModelEquationsCode(string &file_name, const string &bin_basen fendblock.write(code_file, instruction_number); FEND_ fend; fend.write(code_file, instruction_number); - writePowerDeriv(code_file, false); code_file.close(); } diff --git a/StaticModel.cc b/StaticModel.cc index fb21b94d..f8fa8c2b 100644 --- a/StaticModel.cc +++ b/StaticModel.cc @@ -396,7 +396,6 @@ StaticModel::writeModelEquationsOrdered_M(const string &static_basename) const break; } output << "end" << endl; - writePowerDeriv(output, false); output.close(); } } @@ -564,7 +563,6 @@ StaticModel::writeModelEquationsCode(const string file_name, const string bin_ba fendblock.write(code_file, instruction_number); FEND_ fend; fend.write(code_file, instruction_number); - writePowerDeriv(code_file, false); code_file.close(); } @@ -1238,7 +1236,6 @@ StaticModel::writeStaticMFile(const string &func_name) const output << "end" << endl; // Close the if nargout >= 3 statement output << "end" << endl; // Close the *_static function - writePowerDeriv(output, false); output.close(); } @@ -1323,7 +1320,6 @@ StaticModel::writeStaticBlockMFSFile(const string &basename) const } output << " end" << endl << "end" << endl; - writePowerDeriv(output, false); output.close(); }