git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4504 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -60,6 +60,7 @@ DumpCustom::DumpCustom(LAMMPS *lmp, int narg, char **arg) :
|
||||
vtype = new int[nfield];
|
||||
|
||||
iregion = -1;
|
||||
idregion = NULL;
|
||||
nthresh = 0;
|
||||
thresh_array = NULL;
|
||||
thresh_op = NULL;
|
||||
@ -127,6 +128,7 @@ DumpCustom::~DumpCustom()
|
||||
memory->sfree(field2index);
|
||||
memory->sfree(argindex);
|
||||
|
||||
delete [] idregion;
|
||||
memory->sfree(thresh_array);
|
||||
memory->sfree(thresh_op);
|
||||
memory->sfree(thresh_value);
|
||||
@ -1143,6 +1145,9 @@ int DumpCustom::modify_param(int narg, char **arg)
|
||||
else {
|
||||
iregion = domain->find_region(arg[1]);
|
||||
if (iregion == -1) error->all("Dump_modify region ID does not exist");
|
||||
int n = strlen(arg[1]) + 1;
|
||||
idregion = new char[n];
|
||||
strcpy(idregion,arg[1]);
|
||||
}
|
||||
return 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user