From 981c8b933c0f129caf1dbbf11c2b7952c5428f56 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Thu, 24 Oct 2013 18:56:45 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10877 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/fix_shear_history.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fix_shear_history.cpp b/src/fix_shear_history.cpp index f562508efa..bebd23386d 100644 --- a/src/fix_shear_history.cpp +++ b/src/fix_shear_history.cpp @@ -283,8 +283,8 @@ double FixShearHistory::memory_usage() { int nmax = atom->nmax; double bytes = nmax * sizeof(int); - bytes = nmax * sizeof(int *); - bytes = nmax * sizeof(double *); + bytes += nmax * sizeof(int *); + bytes += nmax * sizeof(double *); int nmypage = comm->nthreads; for (int i = 0; i < nmypage; i++) {