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

This commit is contained in:
sjplimp
2009-07-01 20:28:37 +00:00
parent b58c43a5ec
commit c318361d2f
15 changed files with 97 additions and 101 deletions

View File

@ -957,13 +957,11 @@ int FixNPT::modify_param(int narg, char **arg)
if (temperature->igroup != 0 && comm->me == 0)
error->warning("Temperature for fix modify is not for group all");
// reset id_pre of pressure to new temp ID
// reset id_temp of pressure to new temp ID
icompute = modify->find_compute(id_press);
if (icompute < 0) error->all("Pressure ID for fix modify does not exist");
delete [] modify->compute[icompute]->id_pre;
modify->compute[icompute]->id_pre = new char[n];
strcpy(modify->compute[icompute]->id_pre,id_temp);
modify->compute[icompute]->reset_extra_compute(id_temp);
return 2;