port thread-safe temperature biasing from LAMMPS-ICMS
This commit is contained in:
@ -359,6 +359,15 @@ void ComputeTempProfile::remove_bias(int i, double *v)
|
||||
if (zflag) v[2] -= binave[ibin][ivz];
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
remove velocity bias from atom I to leave thermal velocity
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void ComputeTempProfile::remove_bias_thr(int i, double *v, double *)
|
||||
{
|
||||
remove_bias(i,v);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
remove velocity bias from all atoms to leave thermal velocity
|
||||
------------------------------------------------------------------------- */
|
||||
@ -392,6 +401,16 @@ void ComputeTempProfile::restore_bias(int i, double *v)
|
||||
if (zflag) v[2] += binave[ibin][ivz];
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
add back in velocity bias to atom I removed by remove_bias_thr()
|
||||
assume remove_bias_thr() was previously called
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void ComputeTempProfile::restore_bias_thr(int i, double *v, double *)
|
||||
{
|
||||
restore_bias(i,v);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
add back in velocity bias to all atoms removed by remove_bias_all()
|
||||
assume remove_bias_all() was previously called
|
||||
|
||||
Reference in New Issue
Block a user