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

This commit is contained in:
sjplimp
2009-12-17 22:20:32 +00:00
parent af93705f78
commit d6202909fd
7 changed files with 527 additions and 13 deletions

View File

@ -65,8 +65,8 @@ DumpCustom::DumpCustom(LAMMPS *lmp, int narg, char **arg) :
// computes, fixes, variables which the dump accesses
field2index = (int *) memory->smalloc(nfield*sizeof(int),"dump:field2index");
argindex = (int *) memory->smalloc(nfield*sizeof(int),"dump:argindex");
field2index = new int[nfield];
argindex = new int[nfield];
ncompute = 0;
id_compute = NULL;
@ -122,14 +122,13 @@ DumpCustom::~DumpCustom()
{
delete [] pack_choice;
delete [] vtype;
delete [] field2index;
delete [] argindex;
memory->sfree(thresh_array);
memory->sfree(thresh_op);
memory->sfree(thresh_value);
memory->sfree(field2index);
memory->sfree(argindex);
for (int i = 0; i < ncompute; i++) delete [] id_compute[i];
memory->sfree(id_compute);
delete [] compute;