Skip to content

Commit ce517cb

Browse files
committed
EAMxx: fix precision issue in IO avg output
1 parent d3ddc49 commit ce517cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/eamxx/src/share/io/scorpio_output.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ run (const std::string& filename,
488488
f_out.deep_copy(m_fill_value,mask);
489489
} else {
490490
// Divide by steps count only when the summation is complete
491-
f_out.scale(1.0 / nsteps_since_last_output);
491+
f_out.scale(Real(1.0) / nsteps_since_last_output);
492492
}
493493
}
494494

0 commit comments

Comments
 (0)