git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14423 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2016-01-11 23:38:16 +00:00
parent 681ebfaf8f
commit 12c8aaf29d
6 changed files with 288 additions and 15 deletions

View File

@ -15,9 +15,9 @@
#include <string.h>
#include "fix_store.h"
#include "atom.h"
#include "force.h"
#include "memory.h"
#include "error.h"
#include "force.h"
using namespace LAMMPS_NS;
using namespace FixConst;
@ -80,16 +80,6 @@ int FixStore::setmask()
return mask;
}
/* ----------------------------------------------------------------------
memory usage of local atom-based array
------------------------------------------------------------------------- */
double FixStore::memory_usage()
{
double bytes = atom->nmax*nvalues * sizeof(double);
return bytes;
}
/* ----------------------------------------------------------------------
allocate atom-based array
------------------------------------------------------------------------- */
@ -189,3 +179,14 @@ int FixStore::size_restart(int nlocal)
{
return nvalues+1;
}
/* ----------------------------------------------------------------------
memory usage of local atom-based array
------------------------------------------------------------------------- */
double FixStore::memory_usage()
{
double bytes = atom->nmax*nvalues * sizeof(double);
return bytes;
}