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

2.5.1. Ribbon
Label |
Shortcut |
Description |
---|---|---|
|
Open save dialog to select the name to save the executable |
|
Makefile |
Export compilation information to makefile |
Label |
Shortcut |
Description |
---|---|---|
|
Ins |
Open dialog for importing source files or libraries to the create the executable |
|
Open the FLUKA User routines dialog (see below) for selecting and
copying to the current directory a FLUKA user routine from the
|
|
Database |
Scans the input file for possible user routines and propose them in a drop down listbox |
|
|
Del |
Remove selected files from the list |
|
Ctrl-Up |
Move upwards the selected files |
|
Ctrl-Down |
Move downwards the selected files |
Label |
Shortcut |
Description |
---|---|---|
|
Open the selected files in a file viewer |
|
|
Enter |
Open the selected files in a text editor |
Label |
Shortcut |
Description |
---|---|---|
|
Select a linking program for FLUKA |
|
|
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” |
|
|
Ctrl-Enter |
Compile all source files and link the executable. Build operates
similarly to unit “ |
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.

- 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