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.
master
Sébastien Villemot 2022-11-30 14:43:44 +01:00
parent ff296023a9
commit bb3475d548
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 10 additions and 3 deletions

View File

@ -1811,6 +1811,16 @@ DynamicModel::writeDriverOutput(ostream &output, const string &basename, bool es
output << "];" << endl;
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

View File

@ -887,9 +887,6 @@ ModFile::writeMOutput(const string &basename, bool clear_all, bool clear_global,
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);
trend_component_model_table.writeOutput(basename, mOutputFile);
var_expectation_model_table.writeOutput(mOutputFile);