This article describes a new, fully adaptive Particle-Multiple-Mesh (PM 2) numerical simulation code developed primarily for cosmological applications. The code integrates the equations of motion of a set of particles subject to their mutual gravitational interaction and to an optional, arbitrary external field. The interactions between particles are computed using a hierarchy of nested grids constructed anew at each integration step to enhance the spatial resolution in high-density regions of… CONTINUE READING