Skip to content
Snippets Groups Projects
Commit 0305cca1 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

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

parent 3d2c7317
No related branches found
No related tags found
No related merge requests found
...@@ -81,6 +81,7 @@ Fix::Fix(LAMMPS *lmp, int /*narg*/, char **arg) : ...@@ -81,6 +81,7 @@ Fix::Fix(LAMMPS *lmp, int /*narg*/, char **arg) :
scalar_flag = vector_flag = array_flag = 0; scalar_flag = vector_flag = array_flag = 0;
peratom_flag = local_flag = 0; peratom_flag = local_flag = 0;
global_freq = local_freq = peratom_freq = -1;
size_vector_variable = size_array_rows_variable = 0; size_vector_variable = size_array_rows_variable = 0;
comm_forward = comm_reverse = comm_border = 0; comm_forward = comm_reverse = comm_border = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment