Re: [fluka-discuss]: Bug in formatted output of RESNUCLEi

From: Fasso, Alberto <fasso_at_slac.stanford.edu>
Date: Thu, 6 Aug 2015 17:01:10 +0000

Hi Alexander,
that is not a bug, and should not give any problem when reading this data into
another program, provided the other program is written in Fortran. The E is
not compulsory when expressing floating point numbers in Fortran.
Many important data (e.g. evaluated ENDF cross sections) are written that way.

See the discussion in http://stackoverflow.com/questions/24004824/for-three-digit-exponents-fortran-drops-the-e-in-the-output
In particular:
"There is a strong flavour of "fixed column width" to Fortran formatted input and output. Without the exponent field width specification, the "default" width is two. If the exponent part requires one more position than that, then the column normally occupied by the E is borrowed to at least permit output to continue without loss of information. If the exponent output requires two more than the default, then you'll see stars".

Other languages are not so tolerant...

Alberto


________________________________________
From: owner-fluka-discuss_at_mi.infn.it <owner-fluka-discuss_at_mi.infn.it> on behalf of Alexander Michael Krainer <krainer_at_student.tugraz.at>
Sent: Thursday, August 6, 2015 8:11 AM
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: Bug in formatted output of RESNUCLEi

Der Fluka authors,

I have found a bug in the formatted output of the RESNUCLEi card when
using it with
IRRPROFI, DCYTIMES and DCYSCORE. (see attached input file)

If you score the residual nuclei after a specific decay time, some of
the activities become really small (e.g. 5.9910E-213), but the
formatted output can only handle two digits exponents so the output
becomes
5.9910-213. This can cause problems when reading this data into
another program.

Best regards
Alexander Krainer
__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id¬c_info
Received on Thu Aug 06 2015 - 20:30:22 CEST

This archive was generated by hypermail 2.3.0 : Thu Aug 06 2015 - 20:30:33 CEST