#336 Merged at 4e0bd7c
Repository
aemerick
Branch
week-of-code
Repository
enzo
Branch
week-of-code
Author
  1. Andrew Emerick
Reviewers
Description

Adding in support for particles in GalaxySimulation (ProblemType 31) when using DiskGravity. This effectively meant copy-pasting the code that computed the grid cell acceleration field to also compute and update the acceleration fields for particles.

Follows PointSourceGravity implementation for updating particle accelerations.

Comments (5)

  1. Brian O'Shea

    Passes the test suite. Looks great except for my comment about using the POW() macro instead of the system pow() .

    1. Andrew Emerick author

      Thanks. I went ahead and changed the previous instances of pow to POW as well.

      I'll keep this in mind when using pow in the future.

  2. Devin Silvia

    This looks reasonable to me. At some point, if this makes the move to Enzo 3, it will need particle support for Active Particles as well.