Skip to content
Snippets Groups Projects
Commit 03a2f77d authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

hotfix: added assertion in error case. Commented unused typedef

parent 06952bb7
No related branches found
No related tags found
No related merge requests found
Pipeline #5699 canceled
......@@ -17,7 +17,7 @@ namespace wolf
{
/// State of nodes containing several state blocks
typedef std::unordered_map<std::string, Eigen::VectorXd> State;
//typedef std::unordered_map<std::string, Eigen::VectorXd> State;
//typedef std::string StateStructure;
......@@ -220,6 +220,7 @@ inline void HasStateBlocks::setState(const VectorComposite& _state, const bool _
const auto& sb = getStateBlock(key);
if (!sb)
WOLF_ERROR("Stateblock key ", key, " not in the structure");
assert (sb && "Stateblock key not in the structure");
sb->setState(vec, _notify);
}
......
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