Re: [fluka-discuss]: problem of writing a file from source routine

From: Francesc Salvat-Pujol <>
Date: Tue, 12 Dec 2017 12:08:08 +0100

Dear David,

You are writing out to unit 97, not 99.

Running a quick test, e.g.:

    $FLUPRO/flutil/fff source_changed.f
    $FLUPRO/flutil/lfluka -m fluka -o foobar source_changed.o
    $FLUPRO/flutil/rfluka -e foobar -N 0 -M 5 tst

...being tst.inp a valid input file containing a SOURCE card, one gets
*_fort.97 output files populated with your coordinates.

Make sure there is no error in the linking process, that you are running
the correct binary, and that you pass a SOURCE card in your input file.
Let us know if the issue persists.


On Tue, Dec 12 2017, at 09:04 +0000, David Sangcheol Lee wrote:
>Dear fluka expert
>I have added few extra lines in the source.f for the parabolic beam distribution. I
>n order to make sure that the beam coordinates are correct, I placed WRITE(97,*) XFLK (NPFLKA) , YFLK (NPFLKA), ZFLK (NPFLKA)
>Where XFLK (NPFLKA) = rad*sin(theta)
> YFLK (NPFLKA) = rad*cos(theta)
>However, after multiple times, there is no fort file with unit 99 created and I cannot figure out why it is not producing the file.
>Could someone explain it to me what I did wrong?
>I enclose the source file in this.
>Thank you
>Kind regards
>[CERN-logo] David Sangcheol Lee
> European Organisation for Nuclear Research
> 1211 Geneva 23, Switzerland

Francesc Salvat Pujol
CH-1211 Geneva 23
Tel: +41 22 76 64011
Fax: +41 22 76 69474
You can manage unsubscription from this mailing list at
Received on Tue Dec 12 2017 - 13:12:26 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 12 2017 - 13:12:27 CET