Skip to content

Commit 885f413

Browse files
Fix issue #870 (#947)
* Increased precision of ABLBoundaryPlane::write_file() output * Fix formatting
1 parent 672b867 commit 885f413

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

amr-wind/wind_energy/ABLBoundaryPlane.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,8 @@ void ABLBoundaryPlane::write_file()
535535
if (m_out_fmt == "native") {
536536
if (amrex::ParallelDescriptor::IOProcessor()) {
537537
std::ofstream oftime(m_time_file, std::ios::out | std::ios::app);
538-
oftime << t_step << ' ' << time << '\n';
538+
oftime << t_step << ' ' << std::fixed << std::setprecision(15)
539+
<< time << '\n';
539540
oftime.close();
540541
}
541542

0 commit comments

Comments
 (0)