Skip to content
Snippets Groups Projects
Commit bd058574 authored by Idril-Tadzio Geer Cousté's avatar Idril-Tadzio Geer Cousté
Browse files

Small fix

parent 60413cb0
No related branches found
No related tags found
1 merge request!440New tag
Pipeline #8695 passed
......@@ -481,7 +481,15 @@ VectorComposite Problem::getState(const StateStructure& _structure) const
for (const auto& pair_key_vec : prc_state)
{
if (state.count(pair_key_vec.first) == 0) // Only write once. This gives priority to processors with more priority
state.insert(pair_key_vec);
{
state.insert(pair_key_vec);
}
}
//If all keys are filled return
if (state.size() == structure.size())
{
return state;
}
}
......@@ -531,6 +539,12 @@ VectorComposite Problem::getState (const TimeStamp& _ts, const StateStructure& _
if (state.count(pair_key_vec.first) == 0) // Only write once. This gives priority to processors with more priority
state.insert(pair_key_vec);
}
//If all keys are filled return
if (state.size() == structure.size())
{
return state;
}
}
// check for empty blocks and fill them with the closest KF to ts, with the prior, or with zeros in the worst case
......
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