Skip to content

Commit 56214b6

Browse files
Update octree.h
1 parent 1994177 commit 56214b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gravity/octree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ inline void bhAccel(Octree* node, const Particle& p, real theta,
100100
if (node->leaf && node->body == &p)
101101
return;
102102

103-
constexpr real G = real(6.67430e-11);
103+
constexpr real G = real(1.0); // temporarily 1 instead of meter units for galaxies to run efficiently
104104

105105
// Adaptive softening
106106
real eps = node->size * real(0.01);

0 commit comments

Comments
 (0)