Commit 46e0873e authored by Houtan Bastani's avatar Houtan Bastani
Browse files

remove writing of getPowerDeriv M function from block code functions

parent 4f342655
...@@ -1034,7 +1034,6 @@ DynamicModel::writeModelEquationsCode(string &file_name, const string &bin_basen ...@@ -1034,7 +1034,6 @@ DynamicModel::writeModelEquationsCode(string &file_name, const string &bin_basen
fendblock.write(code_file, instruction_number); fendblock.write(code_file, instruction_number);
FEND_ fend; FEND_ fend;
fend.write(code_file, instruction_number); fend.write(code_file, instruction_number);
writePowerDeriv(code_file, false);
code_file.close(); code_file.close();
} }
......
...@@ -396,7 +396,6 @@ StaticModel::writeModelEquationsOrdered_M(const string &static_basename) const ...@@ -396,7 +396,6 @@ StaticModel::writeModelEquationsOrdered_M(const string &static_basename) const
break; break;
} }
output << "end" << endl; output << "end" << endl;
writePowerDeriv(output, false);
output.close(); output.close();
} }
} }
...@@ -564,7 +563,6 @@ StaticModel::writeModelEquationsCode(const string file_name, const string bin_ba ...@@ -564,7 +563,6 @@ StaticModel::writeModelEquationsCode(const string file_name, const string bin_ba
fendblock.write(code_file, instruction_number); fendblock.write(code_file, instruction_number);
FEND_ fend; FEND_ fend;
fend.write(code_file, instruction_number); fend.write(code_file, instruction_number);
writePowerDeriv(code_file, false);
code_file.close(); code_file.close();
} }
...@@ -1238,7 +1236,6 @@ StaticModel::writeStaticMFile(const string &func_name) const ...@@ -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 if nargout >= 3 statement
output << "end" << endl; // Close the *_static function output << "end" << endl; // Close the *_static function
writePowerDeriv(output, false);
output.close(); output.close();
} }
...@@ -1323,7 +1320,6 @@ StaticModel::writeStaticBlockMFSFile(const string &basename) const ...@@ -1323,7 +1320,6 @@ StaticModel::writeStaticBlockMFSFile(const string &basename) const
} }
output << " end" << endl output << " end" << endl
<< "end" << endl; << "end" << endl;
writePowerDeriv(output, false);
output.close(); output.close();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment