git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13286 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user