From 52ec65d466ab0478a29ab6094ff6e1b0e36d8fdc Mon Sep 17 00:00:00 2001 From: sjplimp <sjplimp@f3b2605a-c512-4ea7-a41b-209d697bcdaa> Date: Fri, 23 Aug 2013 15:00:16 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10676 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/pair.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pair.cpp b/src/pair.cpp index 65039615e3..a9062e315e 100644 --- a/src/pair.cpp +++ b/src/pair.cpp @@ -1436,6 +1436,10 @@ void Pair::virial_fdotr_compute() } } + // prevent multiple calls to update the virial + // when a hybrid pair style uses both a gpu and non-gpu pair style + // or when respa is used with gpu pair styles + vflag_fdotr = 0; }