From 964f1815d04cf5d1295e053cafe9fb411877481d Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 14 Dec 2009 15:19:53 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3528 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/fix_ave_time.cpp | 4 ---- src/temper.cpp | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/fix_ave_time.cpp b/src/fix_ave_time.cpp index 1bbe71a6bb..649705cc50 100644 --- a/src/fix_ave_time.cpp +++ b/src/fix_ave_time.cpp @@ -240,7 +240,6 @@ FixAveTime::FixAveTime(LAMMPS *lmp, int narg, char **arg) : if (mode == SCALAR) { vector = new double[nvalues]; vector_total = new double[nvalues]; - for (int i = 0; i < nvalues; i++) vector_total[i] = 0.0; if (ave == WINDOW) vector_list = memory->create_2d_double_array(nwindow,nvalues, "ave/time:vector_list"); @@ -248,9 +247,6 @@ FixAveTime::FixAveTime(LAMMPS *lmp, int narg, char **arg) : array = memory->create_2d_double_array(nrows,nvalues,"ave/time:array"); array_total = memory->create_2d_double_array(nrows,nvalues, "ave/time:array_total"); - for (int i = 0; i < nrows; i++) - for (int j = 0; j < nvalues; j++) - array_total[i][j] = 0.0; if (ave == WINDOW) array_list = memory->create_3d_double_array(nwindow,nrows,nvalues, "ave/time:array_list"); diff --git a/src/temper.cpp b/src/temper.cpp index fb7431b763..ded3111764 100644 --- a/src/temper.cpp +++ b/src/temper.cpp @@ -342,5 +342,6 @@ void Temper::print_status() for (int i = 0; i < nworlds; i++) fprintf(universe->ulogfile,"%d ",world2temp[i]); fprintf(universe->ulogfile,"\n"); + fflush(universe->ulogfile); } }