make certain that *_freq flags are initialized. use -1 instead of 0 to avoid division by zero

This commit is contained in:
Axel Kohlmeyer 2018-09-10 22:47:45 -04:00
parent 3d2c731709
commit 0305cca1df
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ Fix::Fix(LAMMPS *lmp, int /*narg*/, char **arg) :
scalar_flag = vector_flag = array_flag = 0;
peratom_flag = local_flag = 0;
global_freq = local_freq = peratom_freq = -1;
size_vector_variable = size_array_rows_variable = 0;
comm_forward = comm_reverse = comm_border = 0;