Last version:
FLUKA 2023.3.4, April 10th 2024
(last respin 2023.3.4)
flair-2.3-0d 13-Sep-2023

News:

-- Fluka Release
( 10.04.2024 )

FLUKA 2023.3.4 has been released.


font_small font_med font_big print_ascii

 [ 1 ]  [ 2 ]  [ 3 ]  [ 4 ]  [ 5 ]  [ 6 ]  [ 7 ]  [ 8 ]  [ 9 ]  [ 10 ]  [ 11 ]  [ 12 ]  [ 13 ]  [ 14 ]  [ 15 ]  [ back ] 


The executable module can be prepared in different ways.

  1. The user routines must be compiled with the fff script:

    	$FLUPRO/flutil/fff usrini.f
    	$FLUPRO/flutil/fff histin.f
    	$FLUPRO/flutil/fff usrout.f
    	$FLUPRO/flutil/fff mgdraw.f
    	

    The resulting object files can be inserted into a user library, for instance creating the file libuser.a. This is done by means of the command ar:

    	ar -r libuser.a usrini.o usrout.o histin.o mgdraw.o
    	

    The order of the modules is irrelevant.
    Whenever one of the user routines has to be modified, it can be replaced at any time, after compilation, inside libuser.a:

    	ar -r libuser.a filename.o
    	

    The content of the library file, and the dates of the last update of each module, can be checked by means of the command:

    	ar -tv libuser.a
    	

    At this point the executable file, which we shall name for instance flukaseamu, can be linked:

    	$FLUPRO/flutil/lflukac -m fluka -C -O user -o flukaseamu
    	

    The option -C is necessary to invoke the link to the CERN library.

    Warning:

    Before performing this operation, the user must check that inside the lflukac script the environmental variable CERNPATH points to the actual address of CERN library in the user's machine; for instance:

    	CERNPATH=/cern/2003/lib
    	

    The environmental variable X11PATH has to be checked as well.
    It is important to adopt the option -O to address the external user library because it contains routines which must be substituted in the original FLUKA library (libflukahp.a).

  2. The executable module can also be prepared avoiding the creation of a user library:

    	$FLUPRO/flutil/lflukac -m fluka -C usrini.f usrout.f histin.f mgdraw.f -o flukaseamu
    	

    or, if the source files have been already compiled by means of $FLUPRO/flutil/fff:

    	$FLUPRO/flutil/lflukac -m fluka -C usrini.o usrout.o histin.o mgdraw.o -o flukaseamu
    	

    The order in which the user's files are presented is irrelevant.
    With respect to the case where a user library is used, this is a more direct way to link the executable, and for simple problems like the one described here, the difference is irrelevant. In cases in which the number of user routines is not so small, the use of a user library is much more convenient and safer, and is strongly recommended.


Giuseppe Battistoni; INFN, Milano
Francesco Cerutti; CERN, Geneva


Last updated: 10th of December, 2008

© FLUKA Team 2000–2024

Informativa cookies