gandalfcode / gandalf

GANDALF (Graphical Astrophysics code for N-body Dynamics And Lagrangian Fluids)
GNU General Public License v2.0
44 stars 12 forks source link

All z-component vector quantities (e.g. z, vz, az) are zero with python viewer #51

Closed dhubber closed 8 years ago

dhubber commented 8 years ago

When loading a simulation and printing either z, a z-component (e.g. vz, az) or a component that relies that z (e.g. r, vr), it appears that z is always zero and therefore everything's incorrect. I tried an earlier version, before some recent changes to the snapshot class, and it worked fine, so I'm guessing there was a bug introduced in the recent changes. It obviously only affects 3d simulations.

giovanni-rosotti commented 8 years ago

See #52. You are right, I introduced a bug without realising... an 'else' that shouldn't have been there

dhubber commented 8 years ago

Yes, looks fine now.