Skip to content

Commit

Permalink
Fixed factor of 2 for binding energy in rescaling of velocities in ca…
Browse files Browse the repository at this point in the history
…se Plummer potential is used and output to table
  • Loading branch information
ahwkuepper committed Jan 11, 2016
1 parent 36add08 commit c90b035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4829,7 +4829,7 @@ int output3(char *output, int N, double rvir, double rh, double mmean, double M,
}
#endif

vscale = sqrt(1.0+gaspot/epot);
vscale = sqrt(1.0+0.5*gaspot/epot);

for (j=0; j<N; j++) {
star[j][4] *= vscale;
Expand Down

0 comments on commit c90b035

Please sign in to comment.