From 6d9c25b989f19eaccbc561db8f2e3affe587bff7 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Mon, 30 Sep 2024 12:31:10 -0500 Subject: [PATCH] TinyProfiler: Remove unnecessary precision() call (#4174) --- Src/Base/AMReX_TinyProfiler.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Src/Base/AMReX_TinyProfiler.cpp b/Src/Base/AMReX_TinyProfiler.cpp index 32b35bf770..78a1685855 100644 --- a/Src/Base/AMReX_TinyProfiler.cpp +++ b/Src/Base/AMReX_TinyProfiler.cpp @@ -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()) { @@ -487,8 +486,6 @@ TinyProfiler::MemoryFinalize (bool bFlushing) noexcept all_memstats.clear(); all_memnames.clear(); } - - if(os) { os->precision(oldprec); } } bool