Skip to content
Snippets Groups Projects
Commit bc87f774 authored by Timo Koch's avatar Timo Koch Committed by Kilian Weishaupt
Browse files

[io][partialassembler] Use format for output

parent 8afefc53
No related branches found
No related tags found
1 merge request!2319Feature/io format output
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <dune/grid/common/gridenums.hh> #include <dune/grid/common/gridenums.hh>
#include <dune/istl/multitypeblockvector.hh> #include <dune/istl/multitypeblockvector.hh>
#include <dumux/io/format.hh>
#include <dumux/common/typetraits/isvalid.hh> #include <dumux/common/typetraits/isvalid.hh>
#include <dumux/discretization/method.hh> #include <dumux/discretization/method.hh>
#include <dumux/parallel/vectorcommdatahandle.hh> #include <dumux/parallel/vectorcommdatahandle.hh>
...@@ -486,11 +487,10 @@ public: ...@@ -486,11 +487,10 @@ public:
if (comm.size() > 1) if (comm.size() > 1)
greenElems_ = comm.sum(greenElems_); greenElems_ = comm.sum(greenElems_);
auto reassembledElems = totalElems_ - greenElems_; const auto reassembledElems = totalElems_ - greenElems_;
auto width = std::to_string(totalElems_).size(); const auto width = Fmt::formatted_size("{}", totalElems_);
outStream << ", reassembled " << std::setw(width) outStream << Fmt::format(", reassembled {:{}} ({:3}%) elements",
<< reassembledElems << " (" << std::setw(3) reassembledElems, width, 100*reassembledElems/totalElems_);
<< 100*reassembledElems/totalElems_ << "%) elements";
} }
EntityColor elementColor(size_t idx) const EntityColor elementColor(size_t idx) const
......
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