Skip to content
Snippets Groups Projects
Commit 0f35574c authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Solver manager is taking care of SB status at time of adding them

parent bb6c3085
No related branches found
No related tags found
1 merge request!214Hello wolf
......@@ -23,9 +23,6 @@ FrameBase::FrameBase(const TimeStamp& _ts, StateBlockPtr _p_ptr, StateBlockPtr _
state_block_vec_[0] = _p_ptr;
state_block_vec_[1] = _o_ptr;
state_block_vec_[2] = _v_ptr;
if ( isKey() )
registerNewStateBlocks();
}
FrameBase::FrameBase(const FrameType & _tp, const TimeStamp& _ts, StateBlockPtr _p_ptr, StateBlockPtr _o_ptr, StateBlockPtr _v_ptr) :
......@@ -40,9 +37,6 @@ FrameBase::FrameBase(const FrameType & _tp, const TimeStamp& _ts, StateBlockPtr
state_block_vec_[0] = _p_ptr;
state_block_vec_[1] = _o_ptr;
state_block_vec_[2] = _v_ptr;
if ( isKey() )
registerNewStateBlocks();
}
FrameBase::~FrameBase()
......
......@@ -45,6 +45,7 @@ void SolverManager::update()
{
state_blocks_.emplace(state, state->getState());
addStateBlock(state);
updateStateBlockStatus(state);
}
WOLF_DEBUG_COND(registered, "Tried adding an already registered StateBlock.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment