Skip to content

Commit

Permalink
swutch
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Jun 8, 2016
1 parent 1ced503 commit c9a3875
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rebound/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class reb_collision(Structure):
class reb_simulation_integrator_hermes(Structure):
_fields_ = [("mini", c_void_p),
("global", c_void_p),
("switch_radius", c_double),
("hill_switch_factor", c_double),
("radius_switch_factor", c_double),
("mini_active", c_int),
("collision_this_global_dt", c_int),
Expand Down
6 changes: 3 additions & 3 deletions rebound/tests/test_hybarid.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_close_encounter(self):
sim.add(dust)
sim.integrator = "hermes"
sim.gravity = "basic"
sim.ri_hermes.switch_radius = 2.
sim.ri_hermes.hill_switch_factor = 2.
P = sim.particles[1].P
sim.dt = 1e-4*P
for i in range(1000):
Expand Down Expand Up @@ -75,7 +75,7 @@ def test_planetesimal_collision(self):

sim.integrator = "hermes"
#sim.gravity = "basic"
sim.ri_hermes.switch_radius = 3.
sim.ri_hermes.hill_switch_factor = 3.
sim.ri_hermes.radius_switch_factor = 20.
sim.dt = 0.0001
sim.testparticle_type = 1
Expand All @@ -99,7 +99,7 @@ def test_massive_ejection(self):

sim.integrator = "hermes"
#sim.gravity = "basic"
sim.ri_hermes.switch_radius = 3.
sim.ri_hermes.hill_switch_factor = 3.
sim.ri_hermes.radius_switch_factor = 20.
sim.dt = 0.001
sim.testparticle_type = 1
Expand Down

0 comments on commit c9a3875

Please sign in to comment.