fix bug causing equation tags to be ignored when casting to StaticModel

parent 98a9c888
Pipeline #2792 passed with stages
in 6 minutes and 54 seconds
......@@ -164,7 +164,7 @@ StaticModel::StaticModel(const DynamicModel &m) :
// Detect if equation is marked [dynamic]
bool is_dynamic_only = false;
vector<pair<string, string>> eq_tags;
for (const auto & [tagged_eq, tag_pair] : equation_tags)
for (const auto & [tagged_eq, tag_pair] : m.equation_tags)
if (tagged_eq == i)
{
eq_tags.push_back(tag_pair);
......
Markdown is supported
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