From d83121878e7364379975538dc912a29df5e3eb79 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 13 Feb 2025 20:54:46 -0500 Subject: [PATCH] make certain that Contact::varflag is initialized --- src/region.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/region.h b/src/region.h index 19fdec31c7..8a51f404a2 100644 --- a/src/region.h +++ b/src/region.h @@ -47,7 +47,7 @@ class Region : protected Pointers { double delx, dely, delz; // vector from surface pt to particle double radius; // curvature of region at contact point int iwall; // unique id of wall for storing shear history - int varflag; // 1 if wall can be variable-controlled + int varflag = 0; // 1 if wall can be variable-controlled }; Contact *contact; // list of contacts int cmax; // max # of contacts possible with region