From b9f38cf3a0fabc0684e74f5fdf24187ad42ae73d Mon Sep 17 00:00:00 2001 From: Mohammad Soroush Date: Tue, 16 Mar 2021 11:35:05 -0400 Subject: [PATCH] Set the kill value at every step --- src/moves/MultiParticleBrownianMotion.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/moves/MultiParticleBrownianMotion.h b/src/moves/MultiParticleBrownianMotion.h index 6a4fa0873..0f0b5c4b0 100644 --- a/src/moves/MultiParticleBrownianMotion.h +++ b/src/moves/MultiParticleBrownianMotion.h @@ -28,6 +28,7 @@ class MultiParticleBrownian : public MoveBase #ifdef GOMC_CUDA cudaVars = NULL; cudaFreeHost(kill); + kill = NULL; #endif } @@ -254,6 +255,7 @@ inline uint MultiParticleBrownian::Transform() uint state = mv::fail_state::NO_FAIL; #ifdef GOMC_CUDA + kill[0] = 0; // This kernel will calculate translation/rotation amount + shifting/rotating if(moveType == mp::MPROTATE) { double r_max = moveSetRef.GetRMAX(bPick);