This commit is contained in:
Axel Kohlmeyer
2021-04-23 16:32:27 -04:00
parent ef858ae70f
commit 15ce976dba

View File

@ -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