diff --git a/src/particles/diagnostics/DiagnosticOutput.cpp b/src/particles/diagnostics/DiagnosticOutput.cpp index 703dbff48..f820b9def 100644 --- a/src/particles/diagnostics/DiagnosticOutput.cpp +++ b/src/particles/diagnostics/DiagnosticOutput.cpp @@ -19,6 +19,7 @@ #include // for ParticleReal #include // for PrintToFile +#include #include @@ -36,6 +37,7 @@ namespace impactx::diagnostics // keep file open as we add more and more lines amrex::AllPrintToFile file_handler(std::move(file_name)); + file_handler.SetPrecision(std::numeric_limits::max_digits10); // write file header per MPI RANK if (!append) { @@ -75,6 +77,7 @@ namespace impactx::diagnostics } // if( otype == OutputType::PrintReducedBeamCharacteristics) // create a host-side particle buffer + // todo: NOT needed for OutputType::PrintRefParticle and OutputType::PrintReducedBeamCharacteristics auto tmp = pc.make_alike(); // copy device-to-host