Search arXivSearch

arXiv · 0808.0483

Symplectic Integrator Mercury: Bug Report

Abstract

We report on a problem found in MERCURY, a hybrid symplectic integrator used for dynamical problems in Astronomy. The variable that keeps track of bodies' statuses is uninitialised, which can result in bodies disappearing from simulations in a non-physical manner. Some FORTRAN compilers implicitly initialise variables, preventing simulations from having this problem. With other compilers, simulations with a suitably large maximum number of bodies parameter value are also unaffected. Otherwise, the problem manifests at the first event after the integrator is started, whether from scratch or continuing a previously stopped simulation. Although the problem does not manifest in some conditions, explicitly initialising the variable solves the problem in a permanent and unconditional manner.

Explore related subjects

Keep this discovery

BibTeXRIS

K. de Souza Torres, D. R. Anderson. 2008-08-04. Symplectic Integrator Mercury: Bug Report. https://arxiv.org/abs/0808.0483

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Distribution functions for a family of axially symmetric galaxy models

We present the derivation of distribution functions for the first four members of a family of disks, previously obtained in (MNRAS, 371, 1873, 2006), which represent a family of axially symmetric galaxy models with finite radius and well behaved surface mass density. In order to do this we employ several approaches that have been developed starting from the potential-density pair and, essentially using the method introduced by Kalnajs (Ap. J., 205, 751, 1976) we obtain some distribution functions that depend on the Jacobi integral. Now, as this method demands that the mass density can be properly expressed as a function of the gravitational potential, we can do this only for the first four discs of the family. We also find another kind of distribution functions by starting with the even part of the previous distribution functions and using the maximum entropy principle in order to find the odd part and so a new distribution function, as it was pointed out by Dejonghe (Phys. Rep., 133, 217, 1986). The result is a wide variety of equilibrium states corresponding to several self-consistent finite flat galaxy models.

astro-ph

Cosmic-Ray Nuclei, Antiprotons and Gamma-rays in the Galaxy: a New Diffusion Model

We model the transport of cosmic ray nuclei in the Galaxy by means of a new numerical code. Differently from previous numerical models we account for a generic spatial distribution of the diffusion coefficient. We found that in the case of radially uniform diffusion, the main secondary/primary ratios (B/C, N/O and sub-Fe/Fe) and the modulated antiproton spectrum match consistently the available observations. Convection and re-acceleration do not seem to be required in the energy range we consider: $1 < E < 10^3$ GeV/nucleon. We generalize these results accounting for radial dependence of the diffusion coefficient, which is assumed to trace that of the cosmic ray sources. While this does not affect the prediction of secondary/primary ratios, the simulated longitude profile of the diffuse $γ$-ray emission is significantly different from the uniform case and may agree with EGRET measurements without invoking ad hoc assumptions on the galactic gas density distribution.

astro-ph

Black Stars and Gamma Ray Bursts

Stars that are collapsing toward forming a black hole but are frozen near the Schwarzschild horizon are termed "black stars". Collisions of black stars, in contrast to black hole collisions, may be sources of gamma ray bursts, whose basic parameters are estimated quite simply and are found to be consistent with observed gamma ray bursts. Black star gamma ray bursts should be preceded by gravitational wave emission similar to that from the coalescence of black holes.

astro-ph