Skip to content
Snippets Groups Projects
Commit b19dec6c authored by Angel Santamaria-Navarro's avatar Angel Santamaria-Navarro
Browse files

update state_block Notification enum names

parent bca7b779
No related branches found
No related tags found
1 merge request!211State blocks
Pipeline #2151 failed
......@@ -386,7 +386,7 @@ void Problem::updateStateBlockPtr(StateBlockPtr _state_ptr)
//std::cout << "Problem::updateStateBlockPtr " << _state_ptr.get() << std::endl;
// queue for solver manager
_state_ptr->addNotification(StateBlock::Notification::FIX_UPDATE);
_state_ptr->addNotification(StateBlock::Notification::UPDATE_FIX);
notified_state_block_list_.push_back(_state_ptr);
notified_state_block_list_.sort();
notified_state_block_list_.unique();
......
......@@ -53,7 +53,7 @@ void SolverManager::update()
break;
}
case StateBlock::Notification::STATE_UPDATE:
case StateBlock::Notification::UPDATE_STATE:
{
WOLF_DEBUG_COND(state_blocks_.find(state)==state_blocks_.end(),
"Updating the state of an unregistered StateBlock !");
......@@ -67,7 +67,7 @@ void SolverManager::update()
break;
}
case StateBlock::Notification::FIX_UPDATE:
case StateBlock::Notification::UPDATE_FIX:
{
WOLF_DEBUG_COND(state_blocks_.find(state)==state_blocks_.end(),
"Updating the fix state of an unregistered StateBlock !");
......
......@@ -36,8 +36,8 @@ public:
{
ADD = 0,
REMOVE,
STATE_UPDATE,
FIX_UPDATE
UPDATE_STATE,
UPDATE_FIX
};
using Notifications = std::list<Notification>;
......@@ -214,7 +214,7 @@ inline void StateBlock::unfix()
inline void StateBlock::setFixed(bool _fixed)
{
fixed_.store(_fixed);
addNotification(Notification::FIX_UPDATE);
addNotification(Notification::UPDATE_FIX);
}
inline bool StateBlock::hasLocalParametrization() const
......
......@@ -46,11 +46,11 @@ struct DummyNotificationProcessor
{
break;
}
case StateBlock::Notification::STATE_UPDATE:
case StateBlock::Notification::UPDATE_STATE:
{
break;
}
case StateBlock::Notification::FIX_UPDATE:
case StateBlock::Notification::UPDATE_FIX:
{
break;
}
......
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