Commit 1f94bcf8 authored by Rainer Weinberger's avatar Rainer Weinberger

Bugfix for recompute gradient option, corresponds to commit b83bb80 in development version.

parent 7a6f01fd
......@@ -283,7 +283,7 @@ int init(void)
SphP[i].Center[j] = P[i].Pos[j];
#if defined(CELL_CENTER_GRAVITY) && !defined(OUTPUT_CENTER_OF_MASS)
if(RestartFlag == 18)
if(RestartFlag == 17 || RestartFlag == 18)
for(j = 0; j < 3; j++)
SphP[i].Center[j] = P[i].Pos[j];
#endif /* #if defined(CELL_CENTER_GRAVITY) && !defined(OUTPUT_CENTER_OF_MASS) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment