From 688d748ef3f735000526f8e32a44e42f00a0a804 Mon Sep 17 00:00:00 2001 From: Khapisov Malik Date: Wed, 6 Oct 2021 22:00:26 +0300 Subject: [PATCH] Minor upgrades 2 --- Development of a finite element mesh loader/Types.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Development of a finite element mesh loader/Types.cpp b/Development of a finite element mesh loader/Types.cpp index e04953e..a21845a 100644 --- a/Development of a finite element mesh loader/Types.cpp +++ b/Development of a finite element mesh loader/Types.cpp @@ -2,9 +2,7 @@ #include std::ostream& operator << (std::ostream& out, const Node& N) { - out << std::endl << std::setw(4) << N.ID << " " << - std::right << std::setw(11) - << N.vertex; + out << std::endl << std::setw(4) << N.ID << " " << std::setw(11) << N.vertex; for (const auto& it : N.cd) out << std::setw(10) << it; return out; @@ -25,7 +23,7 @@ std::ostream& operator << (std::ostream& out, const FiniteElement& elem) { std::setw(11) << elem.material_ID << " "; for (const auto& it : elem.nodes_ID) - out << std::right << std::setw(11) << it; + out << std::setw(11) << it; out << std::endl; return out; } @@ -44,7 +42,7 @@ std::ostream& operator << (std::ostream& out, const BoundaryFiniteElement& elem) std::setw(4) << elem.element_ID << " " << std::setw(6) << elem.edge_ID << " "; for (const auto& it : elem.nodes_ID) { - out << std::right << std::setw(6) << it; + out << std::setw(6) << it; } out << std::endl; return out; -- GitLab