Merge pull request #476 from akohlmey/dump_custom_bugfix
dump custom memory allocation bugfix
This commit is contained in:
@ -82,8 +82,8 @@ DumpCustom::DumpCustom(LAMMPS *lmp, int narg, char **arg) :
|
|||||||
|
|
||||||
pack_choice = new FnPtrPack[nfield];
|
pack_choice = new FnPtrPack[nfield];
|
||||||
vtype = new int[nfield];
|
vtype = new int[nfield];
|
||||||
field2index = new int[nfield];
|
memory->create(field2index,nfield,"dump:field2index");
|
||||||
argindex = new int[nfield];
|
memory->create(argindex,nfield,"dump:argindex");
|
||||||
|
|
||||||
buffer_allow = 1;
|
buffer_allow = 1;
|
||||||
buffer_flag = 1;
|
buffer_flag = 1;
|
||||||
@ -200,8 +200,8 @@ DumpCustom::~DumpCustom()
|
|||||||
|
|
||||||
delete [] pack_choice;
|
delete [] pack_choice;
|
||||||
delete [] vtype;
|
delete [] vtype;
|
||||||
delete [] field2index;
|
memory->destroy(field2index);
|
||||||
delete [] argindex;
|
memory->destroy(argindex);
|
||||||
|
|
||||||
delete [] idregion;
|
delete [] idregion;
|
||||||
memory->destroy(thresh_array);
|
memory->destroy(thresh_array);
|
||||||
|
|||||||
Reference in New Issue
Block a user