From dd750ad575c875d71809005b60338e8e7abfef84 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu>
Date: Sat, 13 Jun 2020 18:53:35 +0200
Subject: [PATCH] Implement Prb::getState(structure)

---
 src/problem/problem.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/problem/problem.cpp b/src/problem/problem.cpp
index caf9e1115..813077742 100644
--- a/src/problem/problem.cpp
+++ b/src/problem/problem.cpp
@@ -452,7 +452,7 @@ VectorComposite Problem::getState(const StateStructure& _structure) const
     // compose the states of all processor motions into one only state
     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)
         {
             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& _
 
     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
         for (const auto& pair_key_vec : prc_state)
-- 
GitLab