From 0305cca1df30b355f60799bed967e7456e2a3bac Mon Sep 17 00:00:00 2001
From: Axel Kohlmeyer <akohlmey@gmail.com>
Date: Mon, 10 Sep 2018 22:47:45 -0400
Subject: [PATCH] make certain that *_freq flags are initialized. use -1
 instead of 0 to avoid division by zero

---
 src/fix.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/fix.cpp b/src/fix.cpp
index 051ac12bbe..634bc2393d 100644
--- a/src/fix.cpp
+++ b/src/fix.cpp
@@ -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;
-- 
GitLab