simplify
This commit is contained in:
@ -578,13 +578,9 @@ void Velocity::scale(int /*narg*/, char **arg)
|
|||||||
|
|
||||||
int tflag = 0;
|
int tflag = 0;
|
||||||
if (temperature == nullptr) {
|
if (temperature == nullptr) {
|
||||||
char **arg = new char*[3];
|
modify->add_compute(fmt::format("velocity_temp {} temp"));
|
||||||
arg[0] = (char *) "velocity_temp";
|
temperature = modify->compute[modify->ncompute-1];
|
||||||
arg[1] = group->names[igroup];
|
|
||||||
arg[2] = (char *) "temp";
|
|
||||||
temperature = new ComputeTemp(lmp,3,arg);
|
|
||||||
tflag = 1;
|
tflag = 1;
|
||||||
delete [] arg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// initialize temperature computation
|
// initialize temperature computation
|
||||||
|
|||||||
Reference in New Issue
Block a user