Skip to content

Commit

Permalink
Set the kill value at every step
Browse files Browse the repository at this point in the history
  • Loading branch information
msoroush committed Mar 16, 2021
1 parent 477c5c0 commit b9f38cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/moves/MultiParticleBrownianMotion.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class MultiParticleBrownian : public MoveBase
#ifdef GOMC_CUDA
cudaVars = NULL;
cudaFreeHost(kill);
kill = NULL;
#endif
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b9f38cf

Please sign in to comment.