Skip to content

Commit 501c711

Browse files
authored
field norms output: switching to scientific, correct width (#1705)
1 parent 1c8640b commit 501c711

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

amr-wind/utilities/sampling/FieldNorms.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private:
7878
int m_width{18};
7979

8080
//! precision in ASCII output
81-
int m_precision{12};
81+
int m_precision{10};
8282

8383
//! Type of norm
8484
int m_norm_type{2};

amr-wind/utilities/sampling/FieldNorms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ void FieldNorms::write_ascii()
248248

249249
if (amrex::ParallelDescriptor::IOProcessor()) {
250250
std::ofstream f(m_out_fname.c_str(), std::ios_base::app);
251-
f << m_sim.time().time_index() << std::fixed
251+
f << m_sim.time().time_index() << std::scientific
252252
<< std::setprecision(m_precision) << std::setw(m_width)
253253
<< m_sim.time().new_time();
254254
for (double m_fnorm : m_fnorms) {

0 commit comments

Comments
 (0)