From 885f4137ce7b9e6c60f48aa5e4c1a54f1418ea9e Mon Sep 17 00:00:00 2001 From: lawrenceccheung <15526007+lawrenceccheung@users.noreply.github.com> Date: Wed, 3 Jan 2024 08:02:37 -0800 Subject: [PATCH] Fix issue #870 (#947) * Increased precision of ABLBoundaryPlane::write_file() output * Fix formatting --- amr-wind/wind_energy/ABLBoundaryPlane.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amr-wind/wind_energy/ABLBoundaryPlane.cpp b/amr-wind/wind_energy/ABLBoundaryPlane.cpp index b8beb70398..c3d3ed2125 100644 --- a/amr-wind/wind_energy/ABLBoundaryPlane.cpp +++ b/amr-wind/wind_energy/ABLBoundaryPlane.cpp @@ -535,7 +535,8 @@ void ABLBoundaryPlane::write_file() if (m_out_fmt == "native") { if (amrex::ParallelDescriptor::IOProcessor()) { std::ofstream oftime(m_time_file, std::ios::out | std::ios::app); - oftime << t_step << ' ' << time << '\n'; + oftime << t_step << ' ' << std::fixed << std::setprecision(15) + << time << '\n'; oftime.close(); }