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
parent
ff296023a9
commit
bb3475d548
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue