Skip to content
Snippets Groups Projects
Verified Commit bb3475d5 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Remove call to setup_solvers.m

It is no longer used in the new implementation of solve_algo={12,14}.

However, the M_.lhs field that was created by setup_solvers.m is used from
other places, so reimplement it at the preprocessor level.
parent ff296023
No related branches found
No related tags found
No related merge requests found
...@@ -1811,6 +1811,16 @@ DynamicModel::writeDriverOutput(ostream &output, const string &basename, bool es ...@@ -1811,6 +1811,16 @@ DynamicModel::writeDriverOutput(ostream &output, const string &basename, bool es
output << "];" << endl; output << "];" << endl;
writeDriverSparseIndicesHelper<true>(output); writeDriverSparseIndicesHelper<true>(output);
// Write LHS of each equation in text form
output << "M_.lhs = {" << endl;
for (auto eq : equations)
{
output << "'";
eq->arg1->writeJsonOutput(output, {}, {});
output << "'; " << endl;
}
output << "};" << endl;
} }
void void
......
...@@ -887,9 +887,6 @@ ModFile::writeMOutput(const string &basename, bool clear_all, bool clear_global, ...@@ -887,9 +887,6 @@ ModFile::writeMOutput(const string &basename, bool clear_all, bool clear_global,
symbol_table.writeOutput(mOutputFile); symbol_table.writeOutput(mOutputFile);
// Fill the fields related to solve_algo={12,14} if possible.
mOutputFile << "M_ = setup_solvers(M_);" << endl;
var_model_table.writeOutput(basename, mOutputFile); var_model_table.writeOutput(basename, mOutputFile);
trend_component_model_table.writeOutput(basename, mOutputFile); trend_component_model_table.writeOutput(basename, mOutputFile);
var_expectation_model_table.writeOutput(mOutputFile); var_expectation_model_table.writeOutput(mOutputFile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment