Skip to content

Commit

Permalink
Fix issue #870 (#947)
Browse files Browse the repository at this point in the history
* Increased precision of ABLBoundaryPlane::write_file() output

* Fix formatting
  • Loading branch information
lawrenceccheung committed Jan 3, 2024
1 parent 672b867 commit 885f413
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion amr-wind/wind_energy/ABLBoundaryPlane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 885f413

Please sign in to comment.