Commit 89fc7fd5 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Fix typo r_inv, should be rinv

parent 3730da28
...@@ -133,7 +133,7 @@ external_gravity_get_potential_energy( ...@@ -133,7 +133,7 @@ external_gravity_get_potential_energy(
const float dy = g->x[1] - potential->y; const float dy = g->x[1] - potential->y;
const float dz = g->x[2] - potential->z; const float dz = g->x[2] - potential->z;
const float rinv = 1. / sqrtf(dx * dx + dy * dy + dz * dz); const float rinv = 1. / sqrtf(dx * dx + dy * dy + dz * dz);
return -phys_const->const_newton_G * potential->mass * r_inv; return -phys_const->const_newton_G * potential->mass * rinv;
} }
/** /**
......
Supports Markdown
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