git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1279 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -450,6 +450,7 @@ int Input::execute_command()
|
|||||||
else if (!strcmp(command,"thermo_modify")) thermo_modify();
|
else if (!strcmp(command,"thermo_modify")) thermo_modify();
|
||||||
else if (!strcmp(command,"thermo_style")) thermo_style();
|
else if (!strcmp(command,"thermo_style")) thermo_style();
|
||||||
else if (!strcmp(command,"timestep")) timestep();
|
else if (!strcmp(command,"timestep")) timestep();
|
||||||
|
else if (!strcmp(command,"uncompute")) uncompute();
|
||||||
else if (!strcmp(command,"undump")) undump();
|
else if (!strcmp(command,"undump")) undump();
|
||||||
else if (!strcmp(command,"unfix")) unfix();
|
else if (!strcmp(command,"unfix")) unfix();
|
||||||
else if (!strcmp(command,"units")) units();
|
else if (!strcmp(command,"units")) units();
|
||||||
@ -1122,6 +1123,14 @@ void Input::timestep()
|
|||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
void Input::uncompute()
|
||||||
|
{
|
||||||
|
if (narg != 1) error->all("Illegal uncompute command");
|
||||||
|
modify->delete_compute(arg[0]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
void Input::undump()
|
void Input::undump()
|
||||||
{
|
{
|
||||||
if (narg != 1) error->all("Illegal undump command");
|
if (narg != 1) error->all("Illegal undump command");
|
||||||
|
|||||||
@ -107,6 +107,7 @@ class Input : protected Pointers {
|
|||||||
void thermo_modify();
|
void thermo_modify();
|
||||||
void thermo_style();
|
void thermo_style();
|
||||||
void timestep();
|
void timestep();
|
||||||
|
void uncompute();
|
||||||
void undump();
|
void undump();
|
||||||
void unfix();
|
void unfix();
|
||||||
void units();
|
void units();
|
||||||
|
|||||||
@ -95,6 +95,11 @@ Modify::~Modify()
|
|||||||
memory->sfree(fix);
|
memory->sfree(fix);
|
||||||
memory->sfree(fmask);
|
memory->sfree(fmask);
|
||||||
|
|
||||||
|
// delete all computes
|
||||||
|
|
||||||
|
for (int i = 0; i < ncompute; i++) delete compute[i];
|
||||||
|
memory->sfree(compute);
|
||||||
|
|
||||||
delete [] list_initial_integrate;
|
delete [] list_initial_integrate;
|
||||||
delete [] list_pre_exchange;
|
delete [] list_pre_exchange;
|
||||||
delete [] list_pre_neighbor;
|
delete [] list_pre_neighbor;
|
||||||
@ -109,15 +114,9 @@ Modify::~Modify()
|
|||||||
delete [] list_min_energy;
|
delete [] list_min_energy;
|
||||||
|
|
||||||
delete [] end_of_step_every;
|
delete [] end_of_step_every;
|
||||||
|
|
||||||
delete [] list_timeflag;
|
delete [] list_timeflag;
|
||||||
|
|
||||||
restart_deallocate();
|
restart_deallocate();
|
||||||
|
|
||||||
// delete all computes
|
|
||||||
|
|
||||||
for (int i = 0; i < ncompute; i++) delete compute[i];
|
|
||||||
memory->sfree(compute);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user