forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9463 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
4d6b9be28c
commit
e8e8114352
|
@ -99,6 +99,7 @@ void ComputeTempSphere::init()
|
|||
if (tbias->igroup != igroup)
|
||||
error->all(FLERR,"Bias compute group does not match compute group");
|
||||
tbias->init();
|
||||
tbias->setup();
|
||||
if (strcmp(tbias->style,"temp/region") == 0) tempbias = 2;
|
||||
else tempbias = 1;
|
||||
}
|
||||
|
|
|
@ -161,6 +161,7 @@ void Modify::init()
|
|||
// needs to come before compute init
|
||||
// this is b/c some computes call fix->dof()
|
||||
// FixRigid::dof() depends on its own init having been called
|
||||
// NOTE: 2/13, this may no longer be needed b/c computes do dof in setup()
|
||||
|
||||
for (i = 0; i < nfix; i++) fix[i]->init();
|
||||
|
||||
|
|
|
@ -156,6 +156,7 @@ void Velocity::create(double t_desired, int seed)
|
|||
if (igroup != temperature->igroup && comm->me == 0)
|
||||
error->warning(FLERR,"Mismatch between velocity and compute groups");
|
||||
temperature->init();
|
||||
temperature->setup();
|
||||
|
||||
// store a copy of current velocities
|
||||
|
||||
|
@ -531,6 +532,7 @@ void Velocity::scale(int narg, char **arg)
|
|||
if (igroup != temperature->igroup && comm->me == 0)
|
||||
error->warning(FLERR,"Mismatch between velocity and compute groups");
|
||||
temperature->init();
|
||||
temperature->setup();
|
||||
|
||||
// scale temp to desired value
|
||||
|
||||
|
|
Loading…
Reference in New Issue