forked from lijiext/lammps
simplify
This commit is contained in:
parent
6e9bf8709e
commit
548e108695
|
@ -265,11 +265,11 @@ void FixTempBerendsen::write_restart(FILE *fp)
|
|||
|
||||
void FixTempBerendsen::restart(char *buf)
|
||||
{
|
||||
int n = 0;
|
||||
double *list = (double *) buf;
|
||||
|
||||
energy = list[n++];
|
||||
energy = list[0];
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
extract thermostat properties
|
||||
------------------------------------------------------------------------- */
|
||||
|
|
Loading…
Reference in New Issue