Commit 35b3bf30 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

inference: Fix problem with coupled states

parent 8f16e8ff
......@@ -795,6 +795,8 @@ public:
_emat.remove_me(me, _bg);
if (_coupled_state != nullptr)
_coupled_state->remove_edge(me);
else
boost::remove_edge(me, this->_bg);
}
}
}
......@@ -865,6 +867,9 @@ public:
_c_brec[i][me] = 0;
_c_bdrec[i][me] = 0;
}
if (_coupled_state != nullptr)
_coupled_state->add_edge(me);
}
assert(me == _emat.get_me(r, s));
......
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