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

Print Sensor state

parent 6131fed1
No related branches found
No related tags found
No related merge requests found
...@@ -687,6 +687,12 @@ void Problem::print(int depth, bool constr_by, bool metric, bool state_blocks) ...@@ -687,6 +687,12 @@ void Problem::print(int depth, bool constr_by, bool metric, bool state_blocks)
{ {
cout << " S" << S->id() << " " << S->getType(); cout << " S" << S->id() << " " << S->getType();
cout << (S->isExtrinsicDynamic() ? " [Dyn," : " [Sta,") << (S->isIntrinsicDynamic() ? "Dyn]" : "Sta]"); cout << (S->isExtrinsicDynamic() ? " [Dyn," : " [Sta,") << (S->isIntrinsicDynamic() ? "Dyn]" : "Sta]");
if (metric)
{
cout << " Extr = ( " << S->getPPtr()->getState().transpose() << " " << S->getOPtr()->getState().transpose() << " )";
if (S->getIntrinsicPtr())
cout << " Intr = ( " << S->getIntrinsicPtr()->getState().transpose() << " )";
}
if (depth < 2) if (depth < 2)
cout << " -- " << S->getProcessorList().size() << "p"; cout << " -- " << S->getProcessorList().size() << "p";
cout << endl; cout << endl;
......
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