From ea254d9105a2b7e20492fcb23ea39d9889b6f94f Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 1 Sep 2022 16:03:23 -0400 Subject: [PATCH] remove bogus else branch --- src/SPIN/fix_nve_spin.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/SPIN/fix_nve_spin.cpp b/src/SPIN/fix_nve_spin.cpp index b075c2f88b..e578462526 100644 --- a/src/SPIN/fix_nve_spin.cpp +++ b/src/SPIN/fix_nve_spin.cpp @@ -431,22 +431,21 @@ void FixNVESpin::initial_integrate(int /*vflag*/) } } } - } else if (sector_flag == 0) { // serial seq. update + } else { // serial seq. update comm->forward_comm(); // comm. positions of ghost atoms - for (int i = 0; i < nlocal; i++) { // advance quarter s for nlocal-1 + for (int i = 0; i < nlocal; i++) { // advance quarter s for nlocal-1 if (mask[i] & groupbit) { ComputeInteractionsSpin(i); AdvanceSingleSpin(i); } } - for (int i = nlocal-1; i >= 0; i--) { // advance quarter s for nlocal-1 + for (int i = nlocal-1; i >= 0; i--) { // advance quarter s for nlocal-1 if (mask[i] & groupbit) { ComputeInteractionsSpin(i); AdvanceSingleSpin(i); } } - } else error->all(FLERR,"Illegal fix nve/spin command"); - + } } /* ----------------------------------------------------------------------