From c45de4d8fb0f3f37e0aaa118ade6a35fe89c13c4 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Fri, 6 Feb 2015 12:31:09 +0100 Subject: [PATCH] [MeL] Add value and MeshElemType to element output. --- MeshLib/Elements/Element.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MeshLib/Elements/Element.cpp b/MeshLib/Elements/Element.cpp index 9a58a705cc7..14a3d088db2 100644 --- a/MeshLib/Elements/Element.cpp +++ b/MeshLib/Elements/Element.cpp @@ -189,12 +189,14 @@ bool Element::isBoundaryElement() const #ifndef NDEBUG std::ostream& operator<<(std::ostream& os, Element const& e) { - os << "Element " << e._id << " @ " << &e + os << "Element #" << e._id << " value " << e._value << " @ " << &e << " with " << e.getNNeighbors() << " neighbours\n"; unsigned const nnodes = e.getNNodes(); MeshLib::Node* const* const nodes = e.getNodes(); - os << nnodes << " nodes: { "; + os << "MeshElemType: " + << static_cast<std::underlying_type<MeshElemType>::type>(e.getGeomType()) + << " with " << nnodes << " nodes: { "; for (unsigned n = 0; n < nnodes; ++n) os << nodes[n]->getID() << " @ " << nodes[n] << " "; os << "}\n"; -- GitLab