This commit is contained in:
Axel Kohlmeyer 2020-08-09 14:55:11 -04:00
parent 6e9bf8709e
commit 548e108695
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 2 deletions

View File

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