Re: A recommended way to stop a FLUKA run?

From: Alberto Fasso' (fasso@SLAC.Stanford.EDU)
Date: Thu Sep 27 2007 - 09:09:07 CEST

  • Next message: Vasilis Vlachoudis: "Re: Polarized cross section"

    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@slac.stanford.edu
    

  • Next message: Vasilis Vlachoudis: "Re: Polarized cross section"

    This archive was generated by hypermail 2.1.6 : Fri Sep 28 2007 - 00:35:08 CEST