Re: [fluka-discuss]: Writting SOURCE user routine generating from file with mixture of particles?

From: <nozarm_at_triumf.ca>
Date: Fri, 8 Nov 2013 10:47:59 -0800 (PST)

Hello Vahan,

I just tried compiling and running the executable and it worked just fine.
I defined a new run in your flair project, named testroutine-A with 1000
primaries per cycle and 5 cycles.


Cmd: /usr/bin/nohup /triumfcs/linux/fluka/fluka/default/flutil/rfluka -M 5
testroutine-A

produced:


-rw-rw-r-- 1 nozarm nozarm 4000238 Nov 8 10:39stroutine-A001.log
-rw-rw-r-- 1 nozarm nozarm 4000238 Nov 8 10:39 testroutine-A001_fort.32
-rw-rw-r-- 1 nozarm nozarm 114352 Nov 8 10:39 testroutine-A001.out
-rw-rw-r-- 1 nozarm nozarm 22470 Nov 8 10:39 testroutine-A001.err

and similar files for A002 through A005.

I even looked at your usrbin plot and it looks fine.

I am attaching the flair project file with the run definition. I think
your problem was with the way you were running fluka at the end.

Best wishes,
Mina


> Hi everyone!
> I am wrtitting a custom SOURCE routine that generates beam with mixture
> of particles for example electrons and protons from DATA FILE.
> I read the FLUKA help part 13.2.19 and fluka discuss thread from Alberto
> Fasso
> http://www.fluka.org/web_archive/earchive/new-fluka-discuss/2887.html.
> I was able to write the routine and compile it with success!!! But when
> I run FLUKA It starts to work in a moment and crashes with "Finished
> with ERRORS".
> In my source.f routine:
> 1) I read file using OPEN command
> 2) I use READ command inside DO loop in order to fill arrays of
> particle-ID, coordinates, cosines and energy.
> 3) I put particle intanialization from input file in DO loop.
> DO 20 I = 1, NLINES
> NPFLKA = NPFLKA + 1
> WTFLK (NPFLKA) = ONEONE
> WEIPRI = WEIPRI + WTFLK (NPFLKA)
> IJBEAM = PARTID(I)
> TXFLK (NPFLKA) = COSX(I)
> TYFLK (NPFLKA) = COSX(I)
>
> ****** etc. ******
> 20 CONTINUE
> RETURN
> CALL SOEVSV
>
> I can't undertand why it happens because in my nohup.out file there is
> only one single line
>
> ======================= Running FLUKA for cycle # 1
> =======================
> /usr/local/fluka/flutil/rfluka: line 358: 1926 Aborted
> (core dumped) "${EXE}" < "$INPN" 2> "$LOGF" > "$LOGF"
>
> If someone has time PLEASE take a look and say why my SOURCE doesn't
> work.......
> I am attached files that I got after run.
>
> Thank You.
>
>
>




Received on Fri Nov 08 2013 - 20:39:18 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 08 2013 - 20:39:18 CET