diff --git a/src/fix_temp_berendsen.cpp b/src/fix_temp_berendsen.cpp index f2b7940584..7a1d1d06fc 100644 --- a/src/fix_temp_berendsen.cpp +++ b/src/fix_temp_berendsen.cpp @@ -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 ------------------------------------------------------------------------- */