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

This commit is contained in:
sjplimp
2015-10-23 17:00:52 +00:00
parent e53f61a869
commit 08157510b7
4 changed files with 65 additions and 24 deletions

View File

@ -99,7 +99,7 @@ FixSetForce::FixSetForce(LAMMPS *lmp, int narg, char **arg) :
force_flag = 0;
foriginal[0] = foriginal[1] = foriginal[2] = 0.0;
maxatom = atom->nmax;
maxatom = 1;
memory->create(sforce,maxatom,3,"setforce:sforce");
}
@ -342,6 +342,6 @@ double FixSetForce::compute_vector(int n)
double FixSetForce::memory_usage()
{
double bytes = 0.0;
if (varflag == ATOM) bytes = atom->nmax*3 * sizeof(double);
if (varflag == ATOM) bytes = maxatom*3 * sizeof(double);
return bytes;
}