Dear Yuri,
Maybe two answers from the archive (below) could also give you some hints,
Cheers,
Vadim
-------- Forwarded Message --------
Subject: Re: A recommended way to stop a FLUKA run?
Date: Thu, 27 Sep 2007 00:09:07 -0700 (PDT)
From: Alberto Fasso' <fasso_at_slac.stanford.edu>
To: FLUKA discussion list <fluka-discuss_at_fluka.org>
CC: Vadim Talanov <Vadim.Talanov_at_cern.ch>
There is another simple way, that I have used several times.
Just write
OPEN(UNIT=21, FILE="fluka.stop", STATUS="NEW")
Of course, you can insert this statement into any IF block,
according to any logic you wish (for instance, based on the
value of NCASE - see answer by Battistoni - or of a counter
of particular events written by the user).
Of course, the unit number should be one that you have not
already used in input, and should be > 20 anyway.
Alberto
On Wed, 26 Sep 2007, Giuseppe Battistoni wrote:
> Dear Vadim,
>
> A) there is one clean way inside the source routine.
> If there, subject to the conditions that you will impose, you
> put NOMORE = 1 then FLUKA will make a clean end of run.
>
> B) Sometimes, in other routines, I use a different way:
> 1) I include the common (CASLIM) which contains the number of running
> event, NCASE, and the maximum number of requested events, NCASES.
>
> 2) whan I want to stop FLUKA I just put NCASE = NCASES.
>
> In this way FLUKA understands that the required number of histories
> has been processed and stops
>
> Giuseppe Battistoni
>
> On Wed, 26 Sep 2007, Vadim Talanov wrote:
>
>> Dear FLUKA experts,
>>
>> sorry for a maybe naive question but - is there a recommended
effective way to
>> stop a FLUKA run during the execution of the program from within a USER
>> subroutine? "Effective" means not just an execution of a STOP statement
>> somewhere at some condition but rather some way to tell the program
that it's
>> time to stop calculations, collect statistics, write output files
etc. and exit
>> NORMALLY right now.
>>
>> One can presume that there may be several ways to accomplish this,
and I am just
>> wondering which one is recommended by the authors?
>>
>> Sorry once again if this case has been already covered somewhere,
>>
>> Kind regards, Vadim
>>
>
>
--
Alberto Fassò
SLAC-RP, MS 48, 2575 Sand Hill Road, Menlo Park CA 94025
Phone: (1 650) 926 4762 Fax: (1 650) 926 3569
fasso_at_slac.stanford.edu
On 21.09.2015 19:10, Yuri Simeonov wrote:
> Dear Fluka Experts,
>
> is there a way to start Fluka Simulation with a certain number of
> particles (e.g. 100 000 primaries), then call the source.f Routine and
> after some calculations inside assign another number of primaries (e.g
> 99 960)?
>
> Regards
> Yuri
>
>
> 2015-09-17 13:15 GMT+02:00 Yuri Simeonov <yuri.simeonov_at_gmail.com
> <mailto:yuri.simeonov_at_gmail.com>>:
>
> Thank you very much!
>
> 2015-09-17 11:07 GMT+02:00 Vasilis Vlachoudis
> <Vasilis.Vlachoudis_at_cern.ch <mailto:Vasilis.Vlachoudis_at_cern.ch>>:
>
> Hi Yuri,
>
> In the (CASLIM) you have the number of particles to simulate
> NCASES is the number of particles in the START card WHAT(1)
> (modulo 1e9)
> if you use more than 1e9 particles you need also the Mcases
>
> Cheers
> Vasilis
>
> ------------------------------------------------------------------------
> *From:* owner-fluka-discuss_at_mi.infn.it
> <mailto:owner-fluka-discuss_at_mi.infn.it>
> [owner-fluka-discuss_at_mi.infn.it
> <mailto:owner-fluka-discuss_at_mi.infn.it>] on behalf of Yuri
> Simeonov [yuri.simeonov_at_gmail.com <mailto:yuri.simeonov_at_gmail.com>]
> *Sent:* 16 September 2015 19:19
> *To:* fluka-discuss_at_fluka.org <mailto:fluka-discuss_at_fluka.org>
> *Subject:* [fluka-discuss]: Primary particles
>
> Dear Fluka experts,
>
> I am using the source.f Routine und need to know the number of
> primary particles (WHAT (1) in the Start Card) inside the
> Routine. Is there a variable I can use?
>
> Regards
> Yuri
>
>
>
__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Wed Sep 23 2015 - 10:37:15 CEST