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

Implement Prb::getState(structure)

parent 3db365d2
No related branches found
No related tags found
1 merge request!379Resolve "Problem::getState(structure) doesn't care about structure"
Pipeline #5685 canceled
...@@ -452,7 +452,7 @@ VectorComposite Problem::getState(const StateStructure& _structure) const ...@@ -452,7 +452,7 @@ VectorComposite Problem::getState(const StateStructure& _structure) const
// compose the states of all processor motions into one only state // compose the states of all processor motions into one only state
for (const auto& prc : processor_is_motion_list_) for (const auto& prc : processor_is_motion_list_)
{ {
const auto& prc_state = prc->getState(); const auto& prc_state = prc->getState(structure);
for (const auto& pair_key_vec : prc_state) for (const auto& pair_key_vec : prc_state)
{ {
if (state.count(pair_key_vec.first) == 0) // only add those keys that do not exist yet if (state.count(pair_key_vec.first) == 0) // only add those keys that do not exist yet
...@@ -498,7 +498,7 @@ VectorComposite Problem::getState (const TimeStamp& _ts, const StateStructure& _ ...@@ -498,7 +498,7 @@ VectorComposite Problem::getState (const TimeStamp& _ts, const StateStructure& _
for (const auto& prc : processor_is_motion_list_) for (const auto& prc : processor_is_motion_list_)
{ {
const auto& prc_state = prc->getState(_ts); const auto& prc_state = prc->getState(_ts, structure);
// transfer processor vector blocks to problem state // transfer processor vector blocks to problem state
for (const auto& pair_key_vec : prc_state) for (const auto& pair_key_vec : prc_state)
......
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