Skip to content
Snippets Groups Projects

Resolve "Fix Problem::getState() and getState(ts)"

Merged Joan Solà Ortega requested to merge 342-fix-problem-getstate-and-getstate-ts into devel
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -301,9 +301,9 @@ inline VectorXd HasStateBlocks::getStateVector(const StateStructure& _sub_struct
for (const char key : structure)
{
const auto& sb = getStateBlock(key);
if (!sb){
WOLF_ERROR("Stateblock key ", key, " not in the structure");
}
assert(sb != nullptr && "Requested StateBlock key not in the structure");
state.segment(index,sb->getSize()) = sb->getState();
index += sb->getSize();
}
Loading