2.5. Compile

The compile page allows the user to build a fluka executable by specifying the necessary user routines, libraries, and the linking program to use

grab-compile-page.gif

2.5.1. Ribbon

Executable group

Label

Shortcut

Description

save32.gif Save As

Open save dialog to select the name to save the executable

Makefile

Export compilation information to makefile

Files group

Label

Shortcut

Description

add32.gif Add

Ins

Open dialog for importing source files or libraries to the create the executable

database32.gif Database

Open the FLUKA User routines dialog (see below) for selecting and copying to the current directory a FLUKA user routine from the {FlukaDir}/src/user directory

Database triangle_down.gif

Scans the input file for possible user routines and propose them in a drop down listbox

x.gif Remove

Del

Remove selected files from the list

up.gif Move Up

Ctrl-Up

Move upwards the selected files

down.gif Move Down

Ctrl-Down

Move downwards the selected files

View group

Label

Shortcut

Description

viewer32.gif Viewer

Open the selected files in a file viewer

edit32.gif Editor

Enter

Open the selected files in a text editor

Action group

Label

Shortcut

Description

link.gif Link

Select a linking program for FLUKA

clean32.gif Clean

Remove all executable, and object files that are created during the build. It is highly recommended that if you are unsure about the state of the individual files to press always the “Clean” button before the “Build

build32.gif Build

Ctrl-Enter

Compile all source files and link the executable. Build operates similarly to unit “make” command. It recompiles the files ONLY if the time stamp of the source if newer than the object that will create. In case of uncertainty please press the Clean button before.

The main dialog contains the list of files to be used for compiling. Accepts the following file types:

Type

Extension

Fortran

.f, .F, .for

C/C++

.c, .cc, .cpp

Objects

.o

Libraries

.a .so

Right-clicking on the listbox it pops up a menu with the most common actions. On the right side the buttons provide similar functionality

2.5.2. FLUKA User routines Dialog

The following dialog you could select and copy into the project directory, the templates of user routines found in the {FlukaDir}/src/user directory of fluka.

grab-user_dialog.gif
Buttons:
Copy to Project:

Copies the selected files to your project directory

Scan Input:

Scan the input file for cards that active the call to user routines and select the routines. For example if you have a SOURCE card in your input (even disabled), this button will automatically select the source.f routine

View:

Open the selected routines inside the viewer