apply simplifications to standard packages

This commit is contained in:
Axel Kohlmeyer
2020-06-29 00:06:28 -04:00
parent a1c0b78a3a
commit 3a0ae83c96
21 changed files with 88 additions and 219 deletions

View File

@ -39,8 +39,7 @@ FixNPHSphere::FixNPHSphere(LAMMPS *lmp, int narg, char **arg) :
id_temp = new char[tcmd.size()+1];
strcpy(id_temp,tcmd.c_str());
tcmd += " all temp/sphere";
modify->add_compute(tcmd);
modify->add_compute(tcmd + " all temp/sphere");
tcomputeflag = 1;
// create a new compute pressure style
@ -51,7 +50,6 @@ FixNPHSphere::FixNPHSphere(LAMMPS *lmp, int narg, char **arg) :
id_press = new char[pcmd.size()+1];
strcpy(id_press,pcmd.c_str());
pcmd += " all pressure " + std::string(id_temp);
modify->add_compute(pcmd);
modify->add_compute(pcmd + " all pressure " + std::string(id_temp));
pcomputeflag = 1;
}