Skip to content
Snippets Groups Projects
Commit c45de4d8 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MeL] Add value and MeshElemType to element output.

parent 790e2ce4
No related branches found
No related tags found
No related merge requests found
...@@ -189,12 +189,14 @@ bool Element::isBoundaryElement() const ...@@ -189,12 +189,14 @@ bool Element::isBoundaryElement() const
#ifndef NDEBUG #ifndef NDEBUG
std::ostream& operator<<(std::ostream& os, Element const& e) 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"; << " with " << e.getNNeighbors() << " neighbours\n";
unsigned const nnodes = e.getNNodes(); unsigned const nnodes = e.getNNodes();
MeshLib::Node* const* const nodes = e.getNodes(); 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) for (unsigned n = 0; n < nnodes; ++n)
os << nodes[n]->getID() << " @ " << nodes[n] << " "; os << nodes[n]->getID() << " @ " << nodes[n] << " ";
os << "}\n"; os << "}\n";
......
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