From d8daf1da4cada06fc4706eee4f572620966eb0a6 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 5 Mar 2021 06:30:41 -0500 Subject: [PATCH] next_reneighbor should be initialized in setup_pre_exchange() --- src/GRANULAR/fix_pour.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/GRANULAR/fix_pour.cpp b/src/GRANULAR/fix_pour.cpp index 54b7366003..40142c031c 100644 --- a/src/GRANULAR/fix_pour.cpp +++ b/src/GRANULAR/fix_pour.cpp @@ -371,6 +371,13 @@ void FixPour::init() } } +/* ---------------------------------------------------------------------- */ + +void FixPour::setup_pre_exchange() +{ + next_reneighbor = update->ntimestep + 1; +} + /* ---------------------------------------------------------------------- perform particle insertion ------------------------------------------------------------------------- */