Skip to content

Commit

Permalink
TreeWalk state not properly initalized when GPU used for interaction …
Browse files Browse the repository at this point in the history
…list calculation
  • Loading branch information
spencerw committed Mar 29, 2024
1 parent 611ed4b commit 50c3ac5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions TreePiece.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5278,19 +5278,16 @@ void TreePiece::commenceCalculateGravityLocal(intptr_t d_localMoments,
this->sCompactParts = sCompactParts;
this->sVarParts = sVarParts;

calculateGravityLocal();
}
#else

void TreePiece::commenceCalculateGravityLocal(){
#endif
#if INTERLIST_VER > 0
// must set placedRoots to false before starting local comp.
DoubleWalkState *lstate = (DoubleWalkState *)sLocalGravityState;
lstate->placedRoots[0] = false;
#endif
calculateGravityLocal();
}
#endif

void TreePiece::startRemoteChunk() {
#if CHANGA_REFACTOR_DEBUG > 0
Expand Down

0 comments on commit 50c3ac5

Please sign in to comment.