[Carpet] CarpetIOBasic defaults to fixed precision for values as small as 1e-8
Jonathan Thornburg
jthorn at aei.mpg.de
Thu Aug 10 16:20:50 CEST 2006
Hi,
In formatting INFO output, CarpetIOBasic defaults to printing values
in fixed format (C "%f") if they're between real_min and real_max,
and in scientific format (C "%g") otherwise. The default settings
(in the current-darcs version) are
real_min = 1.0e-8
real_max = 1.0e+3
It seems to me that it would be useful to raise real_min to 1.0e-4
or so. Since the default fixed format has 7 digits after the decimal
point, this would ensure that at least 3 significant figures would
always be printed. In contrast, the current-darcs default prints
some nonzero values (eg 2.0e-8) as "0.0000000", which I find quite
confusing.
comments?
ciao,
--
-- Jonathan Thornburg <jthorn at aei.mpg.de>
Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Institut),
Golm, Germany, "Old Europe" http://www.aei.mpg.de/~jthorn/home.html
"Washing one's hands of the conflict between the powerful and the
powerless means to side with the powerful, not to be neutral."
-- quote by Freire / poster by Oxfam
More information about the developers
mailing list