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

This commit is contained in:
sjplimp
2015-03-25 15:50:57 +00:00
parent c3b10e024b
commit 66b96690ae
5 changed files with 743 additions and 3 deletions

View File

@ -28,7 +28,7 @@ using namespace LAMMPS_NS;
ComputeTorqueChunk::ComputeTorqueChunk(LAMMPS *lmp, int narg, char **arg) :
Compute(lmp, narg, arg)
{
if (narg != 4) error->all(FLERR,"Illegal compute inertia/chunk command");
if (narg != 4) error->all(FLERR,"Illegal compute torque/chunk command");
array_flag = 1;
size_array_cols = 3;
@ -235,8 +235,8 @@ void ComputeTorqueChunk::allocate()
memory->create(masstotal,maxchunk,"torque/chunk:masstotal");
memory->create(com,maxchunk,3,"torque/chunk:com");
memory->create(comall,maxchunk,3,"torque/chunk:comall");
memory->create(torque,maxchunk,6,"torque/chunk:torque");
memory->create(torqueall,maxchunk,6,"torque/chunk:torqueall");
memory->create(torque,maxchunk,3,"torque/chunk:torque");
memory->create(torqueall,maxchunk,3,"torque/chunk:torqueall");
array = torqueall;
}