Correctly propagate “mfs” and “cutoff” to the static model
Those two settings were previously always at their default value for the static model, independently of what the user would set in the .mod file.master
parent
fe503d3eab
commit
f45a99fc68
|
@ -686,7 +686,6 @@ ParsingDriver::cutoff(const string &value)
|
|||
{
|
||||
double val = stod(value);
|
||||
mod_file->dynamic_model.cutoff = val;
|
||||
mod_file->static_model.cutoff = val;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -694,7 +693,6 @@ ParsingDriver::mfs(const string &value)
|
|||
{
|
||||
int val = stoi(value);
|
||||
mod_file->dynamic_model.mfs = val;
|
||||
mod_file->static_model.mfs = val;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -88,6 +88,9 @@ StaticModel::StaticModel(const DynamicModel &m) :
|
|||
for (auto aux_eq : m.aux_equations)
|
||||
addAuxEquation(aux_eq->toStatic(*this));
|
||||
|
||||
cutoff = m.cutoff;
|
||||
mfs = m.mfs;
|
||||
|
||||
user_set_add_flags = m.user_set_add_flags;
|
||||
user_set_subst_flags = m.user_set_subst_flags;
|
||||
user_set_add_libs = m.user_set_add_libs;
|
||||
|
|
Loading…
Reference in New Issue