[MMTK] MMTK.Universe.randomPoint(), bug?

Konrad Hinsen hinsen at cnrs-orleans.fr
Fri Nov 9 09:25:14 UTC 2007


On 08.11.2007, at 16:42, Andreas Kring wrote:

> This seems strange since the universe is equally placed in all the 8
> octants. (If 25 is change to 1000 in the loop, this is still the  
> case!)
>
> Is this a bug in MMTK?

Yes, this is a bug: the random points are shifted to the coordinate  
range -L to 0 rather -L/2 to +L/2. This is fixed in the Mercurial  
archive and will be fixed in the next release as well.

The fix is so simple that you can appply it to your own copy as well:

	http://dirac.cnrs-orleans.fr/hg/MMTK/main/rev/44390f72e54e

Konrad.
--
---------------------------------------------------------------------
Konrad Hinsen
Centre de Biophysique Moléculaire, CNRS Orléans
Synchrotron Soleil - Division Expériences
Saint Aubin - BP 48
91192 Gif sur Yvette Cedex, France
Tel. +33-1 69 35 97 15
E-Mail: hinsen at cnrs-orleans.fr
---------------------------------------------------------------------



--
---------------------------------------------------------------------
Konrad Hinsen
Centre de Biophysique Moléculaire, CNRS Orléans
Synchrotron Soleil - Division Expériences
Saint Aubin - BP 48
91192 Gif sur Yvette Cedex, France
Tel. +33-1 69 35 97 15
E-Mail: hinsen at cnrs-orleans.fr
---------------------------------------------------------------------






More information about the mmtk mailing list