From bed6ad466029d4e27525e8fccebe0c9db98951bb Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 4 May 2020 08:18:56 -0400 Subject: [PATCH] manually incorporate fixes for ave/correlate/long from PR #2066 --- doc/src/fix_ave_correlate_long.rst | 2 +- src/USER-MISC/fix_ave_correlate_long.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/fix_ave_correlate_long.rst b/doc/src/fix_ave_correlate_long.rst index affa7df127..24ba504f1b 100644 --- a/doc/src/fix_ave_correlate_long.rst +++ b/doc/src/fix_ave_correlate_long.rst @@ -26,7 +26,7 @@ Syntax v_name = global value calculated by an equal-style variable with name * zero or more keyword/arg pairs may be appended -* keyword = *type* or *start* or *file* or *overwrite* or *title1* or *title2* or *ncorr* or *p* or *m* +* keyword = *type* or *start* or *file* or *overwrite* or *title1* or *title2* or *ncorr* or *nlen* or *ncount* .. parsed-literal:: diff --git a/src/USER-MISC/fix_ave_correlate_long.cpp b/src/USER-MISC/fix_ave_correlate_long.cpp index 3a28e47cda..4d548d585a 100644 --- a/src/USER-MISC/fix_ave_correlate_long.cpp +++ b/src/USER-MISC/fix_ave_correlate_long.cpp @@ -495,7 +495,7 @@ void FixAveCorrelateLong::end_of_step() if(overwrite) fseek(fp,filepos,SEEK_SET); fprintf(fp,"# Timestep: " BIGINT_FORMAT "\n", ntimestep); for (unsigned int i=0;idt); + fprintf(fp, "%lg ", t[i]*update->dt*nevery); for (int j=0;j