Closed AlexanderSinn closed 2 months ago
Yes, we should fix it. But where is the fill character set to '0'? Is it in Hipace++? If it's in amrex, we need to fix that too.
There indeed is a std::setfill('0')
in hipace, but searching setfill
in amrex also gives some results.
If it's used on a local stream, it's okay.
like this one in AMReX_String.cpp
std::stringstream result;
result << root << std::setfill('0') << std::setw(mindigits) << num;
You can use IOFormatSaver in format_time
to remove the side effect.
Summary
Set the fill in TinyProfiler::PrintMemStats to
' '
instead of'0'
.Additional background
This PR fixes the output looking like this:
Checklist
The proposed changes: