Skip to content
Snippets Groups Projects
Commit a242c2cb authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Reset the reposition variables once the reposition is done. Avoids problems...

Reset the reposition variables once the reposition is done. Avoids problems when there are multiple drifts.
parent a83b6f08
No related branches found
No related tags found
No related merge requests found
......@@ -125,6 +125,12 @@ __attribute__((always_inline)) INLINE static void black_holes_predict_extra(
bp->gpart->x[0] = bp->reposition.x[0];
bp->gpart->x[1] = bp->reposition.x[1];
bp->gpart->x[2] = bp->reposition.x[2];
/* Reset the reposition variables */
bp->reposition.x[0] = -FLT_MAX;
bp->reposition.x[1] = -FLT_MAX;
bp->reposition.x[2] = -FLT_MAX;
bp->reposition.min_potential = FLT_MAX;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment