apply simplifications to standard packages
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user