danieljprice / phantom

Phantom Smoothed Particle Hydrodynamics and Magnetohydrodynamics code
https://phantomsph.github.io
Other
103 stars 230 forks source link

Fix bug with co-rotating frame not set correctly #563

Closed themikelau closed 3 months ago

themikelau commented 3 months ago

One-line fix for setting up a binary orbit in the co-rotating frame. Previously, iexternalforce was set to 0 prior to relaxation procedures, but this also meant that the subsequent call to set_orbit did not recognise that the orbit should be set in the co-rotating frame.