RE: USRYIELD binary output

From: Lee, Kerry T. \(JSC-SF\)[LMIT] (kerry.t.lee@nasa.gov)
Date: Mon Dec 11 2006 - 16:00:07 CET

  • Next message: me@marychin.org: "Low energy neutron xsec not found for some media"

    This is a multi-part message in MIME format.

    ------_=_NextPart_001_01C71D35.0BE304A4
    Content-Type: text/plain;
            charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable

    Hi Alfredo,

    I have determined that the algorithm is doing things right and even =
    though the what1 of the input file does not follow the manual's =
    instructions it turns out to give the right results anyway. The =
    difference is that instead of making "ia" a positive number only, if one =
    makes it negative the algorithm produces the right result anyway. The =
    following code does the work right.

              AAUSYL =3D 0.01D+00 * DBLE (ITUSYL(NY))
              IAUSYL (NY) =3D NINT (AAUSYL)
              IEUSYL (NY) =3D ITUSYL (NY) - IAUSYL (NY) * 100

    If you put in ITUSYL =3D -123, then IAUSYL =3D -1 and IEUSYL =3D -23, =
    but for ITUSYL =3D 77 you get IAUSYL =3D 1 and IEUSYL =3D -23, but I =
    assume since IA represents a single bin the sign is ignored and when =
    what1 is packed back up before being written to the USRYIELD output the =
    algorithm ignores the sign again by doing

    ITUSYL(NY) =3D IEUSYL(NY) + ABS(IAUSYL(NY))*100

    Although this is a little confusing on how I was getting the right =
    results while not following the explicit instructions of the manual, and =
    that the written what1 was different than the supplied what1, the fault =
    was mine. Even so, it might be better to not ignore the sign of IA when =
    writing to the USRYIELD output so that it will agree with what the user =
    input.

    Thanks
    Kerry

    -----Original Message-----
    From: Alfredo Ferrari [mailto:alfredo.ferrari@cern.ch]
    Sent: Mon 12/11/2006 7:35 AM
    To: Lee, Kerry T. (JSC-SF)[LMIT]
    Cc: fluka-discuss@fluka.org
    Subject: RE: USRYIELD binary output
    =20
    Hi Kerry

    the code tries to unpack from what(1) the infos about which two physical =

    quantities you want to deal with. Probably a nonsense number is unpacked
    into something strange (I should verify).

                     Ciao
                    Alfredo
    On Fri, 8 Dec 2006, Lee, Kerry T. (JSC-SF)[LMIT] wrote:

    > This is a multi-part message in MIME format.
    >
    > ------_=3D_NextPart_001_01C71AD8.4F96A1D0
    > Content-Type: text/plain;
    > charset=3D"iso-8859-1"
    > Content-Transfer-Encoding: quoted-printable
    >
    > I seem to have found that I was in error when explaining the problem. =
    I =3D
    > missed the fact that what12 is stored as the next variable after =
    what1, =3D
    > but the value stored where what1 should be is 77 and the value from =
    the =3D
    > input file is -123. How is this not being transferred correctly to =
    the =3D
    > output file?
    >
    > Thanks
    > Kerry
    >
    >
    > -----Original Message-----
    > From: Lee, Kerry T. (JSC-SF)[LMIT]
    > Sent: Thu 12/7/2006 10:27 AM
    > To: fluka-discuss@fluka.org
    > Subject: USRYIELD binary output
    > =3D20
    >
    > Dear FLUKA authors,
    >
    > I am reading a USRYIELD output that was written according to the =3D
    > following USRYIELD command
    >
    > USRYIELD -123.00000 201.00000-50.000000 4.0000000 5.0000000 =3D
    > 1.0000000LET+0.1 =3D20
    > USRYIELD 1000.0000 0.0000000 100.00000 1.5000000 0.0000000 2603.0000 =
    & =3D
    > =3D20
    > =3D20
    > I am trying to parse the file using a C++ routine, so it is imperitive =
    I =3D
    > understand the details of what is written where. I followed the code =
    in =3D
    > the manual on reading the USRYIELD output =3D
    > (http://www.fluka.org/manual/sect/s090/text.html) and see that the =3D
    > variable ITUSYL(NY) is supposed to correspond to the What1. When I =
    read =3D
    > this file the variable reads a value of 2603, which is my What12 and =
    not =3D
    > What1. I have taken into account the extra bytes that fortran writes =
    =3D
    > and all the other values are read in correctly, so is this a bug or am =
    I =3D
    > missing something?
    >
    > Thanks
    > Kerry
    >
    >
    > ------_=3D_NextPart_001_01C71AD8.4F96A1D0
    > Content-Type: text/html;
    > charset=3D"iso-8859-1"
    > Content-Transfer-Encoding: quoted-printable
    >
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
    > <HTML>
    > <HEAD>
    > <META HTTP-EQUIV=3D3D"Content-Type" CONTENT=3D3D"text/html; =3D
    > charset=3D3Diso-8859-1">
    > <META NAME=3D3D"Generator" CONTENT=3D3D"MS Exchange Server version =3D
    > 6.5.7651.34">
    > <TITLE>RE: USRYIELD binary output</TITLE>
    > </HEAD>
    > <BODY>
    > <!-- Converted from text/plain format -->
    >
    > <P><FONT SIZE=3D3D2>I seem to have found that I was in error when =3D
    > explaining the problem.&nbsp; I missed the fact that what12 is stored =
    as =3D
    > the next variable after what1, but the value stored where what1 should =
    =3D
    > be is 77 and the value from the input file is -123.&nbsp; How is this =
    =3D
    > not being transferred correctly to the output file?<BR>
    > <BR>
    > Thanks<BR>
    > Kerry<BR>
    > <BR>
    > <BR>
    > -----Original Message-----<BR>
    > From: Lee, Kerry T. (JSC-SF)[LMIT]<BR>
    > Sent: Thu 12/7/2006 10:27 AM<BR>
    > To: fluka-discuss@fluka.org<BR>
    > Subject: USRYIELD binary output<BR>
    > <BR>
    > <BR>
    > Dear FLUKA authors,<BR>
    > <BR>
    > I am reading a USRYIELD output that was written according to the =3D
    > following USRYIELD command<BR>
    > <BR>
    > USRYIELD&nbsp; -123.00000 201.00000-50.000000 4.0000000 5.0000000 =3D
    > 1.0000000LET+0.1&nbsp;&nbsp;<BR>
    > USRYIELD&nbsp;&nbsp; 1000.0000 0.0000000 100.00000 1.5000000 0.0000000 =
    =3D
    > 2603.0000 &amp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
    > <BR>
    > I am trying to parse the file using a C++ routine, so it is imperitive =
    I =3D
    > understand the details of what is written where.&nbsp; I followed the =
    =3D
    > code in the manual on reading the USRYIELD output (<A =3D
    > =
    HREF=3D3D"http://www.fluka.org/manual/sect/s090/text.html">http://www.flu=
    ka=3D
    > .org/manual/sect/s090/text.html</A>) and see that the variable =3D
    > ITUSYL(NY) is supposed to correspond to the What1.&nbsp; When I read =
    =3D
    > this file the variable reads a value of 2603, which is my What12 and =
    not =3D
    > What1.&nbsp; I have taken into account the extra bytes that fortran =
    =3D
    > writes and all the other values are read in correctly, so is this a =
    bug =3D
    > or am I missing something?<BR>
    > <BR>
    > Thanks<BR>
    > Kerry<BR>
    > <BR>
    > </FONT>
    > </P>
    >
    > </BODY>
    > </HTML>
    > ------_=3D_NextPart_001_01C71AD8.4F96A1D0--
    >

    --=20

    +------------------------------------------------------------------------=
    ----+
    | Alfredo Ferrari || Tel.: +41.22.767.6119 =
        |
    | CERN-AB || Fax.: +41.22.767.7555 =
        |
    | 1211 Geneva 23 || e-mail: Alfredo.Ferrari@cern.ch =
        |
    | Switzerland || Alfredo.Ferrari@mi.infn.it =
        |
    +------------------------------------------------------------------------=
    ----+

    ------_=_NextPart_001_01C71D35.0BE304A4
    Content-Type: text/html;
            charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
    <HTML>
    <HEAD>
    <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
    charset=3Diso-8859-1">
    <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
    6.5.7651.34">
    <TITLE>RE: USRYIELD binary output</TITLE>
    </HEAD>
    <BODY>
    <!-- Converted from text/plain format -->

    <P><FONT SIZE=3D2>Hi Alfredo,<BR>
    <BR>
    I have determined that the algorithm is doing things right and even =
    though the what1 of the input file does not follow the manual's =
    instructions it turns out to give the right results anyway.&nbsp; The =
    difference is that instead of making &quot;ia&quot; a positive number =
    only, if one makes it negative the algorithm produces the right result =
    anyway.&nbsp; The following code does the work right.<BR>
    <BR>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AAUSYL =3D =
    0.01D+00 * DBLE (ITUSYL(NY))<BR>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IAUSYL (NY) =3D =
    NINT (AAUSYL)<BR>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IEUSYL (NY) =3D =
    ITUSYL (NY) - IAUSYL (NY) * 100<BR>
    <BR>
    If you put in ITUSYL =3D -123, then IAUSYL =3D -1 and IEUSYL =3D -23, =
    but for ITUSYL =3D 77 you get IAUSYL =3D 1 and IEUSYL =3D -23, but I =
    assume since IA represents a single bin the sign is ignored and when =
    what1 is packed back up before being written to the USRYIELD output the =
    algorithm ignores the sign again by doing<BR>
    <BR>
    ITUSYL(NY) =3D IEUSYL(NY) + ABS(IAUSYL(NY))*100<BR>
    <BR>
    Although this is a little confusing on how I was getting the right =
    results while not following the explicit instructions of the manual, and =
    that the written what1 was different than the supplied what1, the fault =
    was mine.&nbsp; Even so, it might be better to not ignore the sign of IA =
    when writing to the USRYIELD output so that it will agree with what the =
    user input.<BR>
    <BR>
    Thanks<BR>
    Kerry<BR>
    <BR>
    -----Original Message-----<BR>
    From: Alfredo Ferrari [<A =
    HREF=3D"mailto:alfredo.ferrari@cern.ch">mailto:alfredo.ferrari@cern.ch</A=
    >]<BR>
    Sent: Mon 12/11/2006 7:35 AM<BR>
    To: Lee, Kerry T. (JSC-SF)[LMIT]<BR>
    Cc: fluka-discuss@fluka.org<BR>
    Subject: RE: USRYIELD binary output<BR>
    <BR>
    Hi Kerry<BR>
    <BR>
    the code tries to unpack from what(1) the infos about which two =
    physical<BR>
    quantities you want to deal with. Probably a nonsense number is =
    unpacked<BR>
    into something strange (I should verify).<BR>
    <BR>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
    nbsp;&nbsp;&nbsp;&nbsp; Ciao<BR>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
    nbsp;&nbsp;&nbsp; Alfredo<BR>
    On Fri, 8 Dec 2006, Lee, Kerry T. (JSC-SF)[LMIT] wrote:<BR>
    <BR>
    &gt; This is a multi-part message in MIME format.<BR>
    &gt;<BR>
    &gt; ------_=3D_NextPart_001_01C71AD8.4F96A1D0<BR>
    &gt; Content-Type: text/plain;<BR>
    &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; charset=3D&quot;iso-8859-1&quot;<BR>
    &gt; Content-Transfer-Encoding: quoted-printable<BR>
    &gt;<BR>
    &gt; I seem to have found that I was in error when explaining the =
    problem.&nbsp; I =3D<BR>
    &gt; missed the fact that what12 is stored as the next variable after =
    what1, =3D<BR>
    &gt; but the value stored where what1 should be is 77 and the value from =
    the =3D<BR>
    &gt; input file is -123.&nbsp; How is this not being transferred =
    correctly to the =3D<BR>
    &gt; output file?<BR>
    &gt;<BR>
    &gt; Thanks<BR>
    &gt; Kerry<BR>
    &gt;<BR>
    &gt;<BR>
    &gt; -----Original Message-----<BR>
    &gt; From: Lee, Kerry T. (JSC-SF)[LMIT]<BR>
    &gt; Sent: Thu 12/7/2006 10:27 AM<BR>
    &gt; To: fluka-discuss@fluka.org<BR>
    &gt; Subject: USRYIELD binary output<BR>
    &gt; =3D20<BR>
    &gt;<BR>
    &gt; Dear FLUKA authors,<BR>
    &gt;<BR>
    &gt; I am reading a USRYIELD output that was written according to the =
    =3D<BR>
    &gt; following USRYIELD command<BR>
    &gt;<BR>
    &gt; USRYIELD&nbsp; -123.00000 201.00000-50.000000 4.0000000 5.0000000 =
    =3D<BR>
    &gt; 1.0000000LET+0.1&nbsp; =3D20<BR>
    &gt; USRYIELD&nbsp;&nbsp; 1000.0000 0.0000000 100.00000 1.5000000 =
    0.0000000 2603.0000 &amp; =3D<BR>
    &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =3D20<BR>
    &gt; =3D20<BR>
    &gt; I am trying to parse the file using a C++ routine, so it is =
    imperitive I =3D<BR>
    &gt; understand the details of what is written where.&nbsp; I followed =
    the code in =3D<BR>
    &gt; the manual on reading the USRYIELD output =3D<BR>
    &gt; (<A =
    HREF=3D"http://www.fluka.org/manual/sect/s090/text.html">http://www.fluka=
    .org/manual/sect/s090/text.html</A>) and see that the =3D<BR>
    &gt; variable ITUSYL(NY) is supposed to correspond to the What1.&nbsp; =
    When I read =3D<BR>
    &gt; this file the variable reads a value of 2603, which is my What12 =
    and not =3D<BR>
    &gt; What1.&nbsp; I have taken into account the extra bytes that fortran =
    writes =3D<BR>
    &gt; and all the other values are read in correctly, so is this a bug or =
    am I =3D<BR>
    &gt; missing something?<BR>
    &gt;<BR>
    &gt; Thanks<BR>
    &gt; Kerry<BR>
    &gt;<BR>
    &gt;<BR>
    &gt; ------_=3D_NextPart_001_01C71AD8.4F96A1D0<BR>
    &gt; Content-Type: text/html;<BR>
    &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; charset=3D&quot;iso-8859-1&quot;<BR>
    &gt; Content-Transfer-Encoding: quoted-printable<BR>
    &gt;<BR>
    &gt; &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML =
    3.2//EN&quot;&gt;<BR>
    &gt; &lt;HTML&gt;<BR>
    &gt; &lt;HEAD&gt;<BR>
    &gt; &lt;META HTTP-EQUIV=3D3D&quot;Content-Type&quot; =
    CONTENT=3D3D&quot;text/html; =3D<BR>
    &gt; charset=3D3Diso-8859-1&quot;&gt;<BR>
    &gt; &lt;META NAME=3D3D&quot;Generator&quot; CONTENT=3D3D&quot;MS =
    Exchange Server version =3D<BR>
    &gt; 6.5.7651.34&quot;&gt;<BR>
    &gt; &lt;TITLE&gt;RE: USRYIELD binary output&lt;/TITLE&gt;<BR>
    &gt; &lt;/HEAD&gt;<BR>
    &gt; &lt;BODY&gt;<BR>
    &gt; &lt;!-- Converted from text/plain format --&gt;<BR>
    &gt;<BR>
    &gt; &lt;P&gt;&lt;FONT SIZE=3D3D2&gt;I seem to have found that I was in =
    error when =3D<BR>
    &gt; explaining the problem.&amp;nbsp; I missed the fact that what12 is =
    stored as =3D<BR>
    &gt; the next variable after what1, but the value stored where what1 =
    should =3D<BR>
    &gt; be is 77 and the value from the input file is -123.&amp;nbsp; How =
    is this =3D<BR>
    &gt; not being transferred correctly to the output file?&lt;BR&gt;<BR>
    &gt; &lt;BR&gt;<BR>
    &gt; Thanks&lt;BR&gt;<BR>
    &gt; Kerry&lt;BR&gt;<BR>
    &gt; &lt;BR&gt;<BR>
    &gt; &lt;BR&gt;<BR>
    &gt; -----Original Message-----&lt;BR&gt;<BR>
    &gt; From: Lee, Kerry T. (JSC-SF)[LMIT]&lt;BR&gt;<BR>
    &gt; Sent: Thu 12/7/2006 10:27 AM&lt;BR&gt;<BR>
    &gt; To: fluka-discuss@fluka.org&lt;BR&gt;<BR>
    &gt; Subject: USRYIELD binary output&lt;BR&gt;<BR>
    &gt; &lt;BR&gt;<BR>
    &gt; &lt;BR&gt;<BR>
    &gt; Dear FLUKA authors,&lt;BR&gt;<BR>
    &gt; &lt;BR&gt;<BR>
    &gt; I am reading a USRYIELD output that was written according to the =
    =3D<BR>
    &gt; following USRYIELD command&lt;BR&gt;<BR>
    &gt; &lt;BR&gt;<BR>
    &gt; USRYIELD&amp;nbsp; -123.00000 201.00000-50.000000 4.0000000 =
    5.0000000 =3D<BR>
    &gt; 1.0000000LET+0.1&amp;nbsp;&amp;nbsp;&lt;BR&gt;<BR>
    &gt; USRYIELD&amp;nbsp;&amp;nbsp; 1000.0000 0.0000000 100.00000 =
    1.5000000 0.0000000 =3D<BR>
    &gt; 2603.0000 =
    &amp;amp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp=
    ;nbsp;&lt;BR&gt;<BR>
    &gt; &lt;BR&gt;<BR>
    &gt; I am trying to parse the file using a C++ routine, so it is =
    imperitive I =3D<BR>
    &gt; understand the details of what is written where.&amp;nbsp; I =
    followed the =3D<BR>
    &gt; code in the manual on reading the USRYIELD output (&lt;A =3D<BR>
    &gt; HREF=3D3D&quot;<A =
    HREF=3D"http://www.fluka.org/manual/sect/s090/text.html">http://www.fluka=
    .org/manual/sect/s090/text.html</A>&quot;&gt;<A =
    HREF=3D"http://www.fluka=3D">http://www.fluka=3D><BR>
    &gt; .org/manual/sect/s090/text.html&lt;/A&gt;) and see that the =
    variable =3D<BR>
    &gt; ITUSYL(NY) is supposed to correspond to the What1.&amp;nbsp; When I =
    read =3D<BR>
    &gt; this file the variable reads a value of 2603, which is my What12 =
    and not =3D<BR>
    &gt; What1.&amp;nbsp; I have taken into account the extra bytes that =
    fortran =3D<BR>
    &gt; writes and all the other values are read in correctly, so is this a =
    bug =3D<BR>
    &gt; or am I missing something?&lt;BR&gt;<BR>
    &gt; &lt;BR&gt;<BR>
    &gt; Thanks&lt;BR&gt;<BR>
    &gt; Kerry&lt;BR&gt;<BR>
    &gt; &lt;BR&gt;<BR>
    &gt; &lt;/FONT&gt;<BR>
    &gt; &lt;/P&gt;<BR>
    &gt;<BR>
    &gt; &lt;/BODY&gt;<BR>
    &gt; &lt;/HTML&gt;<BR>
    &gt; ------_=3D_NextPart_001_01C71AD8.4F96A1D0--<BR>
    &gt;<BR>
    <BR>
    --<BR>
    <BR>
    +------------------------------------------------------------------------=
    ----+<BR>
    |&nbsp; Alfredo =
    Ferrari&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
    &nbsp;&nbsp;&nbsp;&nbsp; ||&nbsp; Tel.: =
    +41.22.767.6119&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
    p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR>
    |&nbsp; =
    CERN-AB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
    ||&nbsp; Fax.: =
    +41.22.767.7555&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
    p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR>
    |&nbsp; 1211 Geneva =
    23&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
    ;&nbsp;&nbsp;&nbsp;&nbsp; ||&nbsp; e-mail: =
    Alfredo.Ferrari@cern.ch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR>
    |&nbsp; =
    Switzerland&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
    bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
    ||&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
    Alfredo.Ferrari@mi.infn.it&nbsp;&nbsp;&nbsp;&nbsp; |<BR>
    +------------------------------------------------------------------------=
    ----+<BR>
    <BR>
    </FONT>
    </P>

    </BODY>
    </HTML>
    ------_=_NextPart_001_01C71D35.0BE304A4--


  • Next message: me@marychin.org: "Low energy neutron xsec not found for some media"

    This archive was generated by hypermail 2.1.6 : Wed Dec 13 2006 - 13:59:05 CET