Skip to content

Commit

Permalink
TinyProfiler: Remove unnecessary precision() call (AMReX-Codes#4174)
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang authored Sep 30, 2024
1 parent ea4eb97 commit 6d9c25b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Src/Base/AMReX_TinyProfiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ TinyProfiler::MemoryFinalize (bool bFlushing) noexcept

std::ofstream ofs;
std::ostream* os = nullptr;
std::streamsize oldprec = 0;
if (ParallelDescriptor::IOProcessor()) {
auto const& ofile = get_output_file();
if (ofile.empty()) {
Expand All @@ -487,8 +486,6 @@ TinyProfiler::MemoryFinalize (bool bFlushing) noexcept
all_memstats.clear();
all_memnames.clear();
}

if(os) { os->precision(oldprec); }
}

bool
Expand Down

0 comments on commit 6d9c25b

Please sign in to comment.