[fluka-discuss]: RE: About the combination of useer routines: SOURCE and MGDRAW

From: Anton Lechner <Anton.Lechner_at_cern.ch>
Date: Fri, 22 Feb 2019 15:15:31 +0000

Dear Qi,

You have to create only *one* executable with all modified user routines (i.e. including both your source and mgdraw). This is done in the following way (on the command line, assuming your routines are called your_source.f, your_mgdraw.f):

1. Compile each routine:
$FLUPRO/flutil/fff your_source.f
$FLUPRO/flutil/fff your_mgdraw.f

2. Link (assuming you want to include dpmjet, otherwise you can simply use lfluka as linker):
$FLUPRO/flutil/ldpmqmd -m fluka -o x_fluka your_mgdraw.o your_source.o

In this case, the resulting executable is called x_fluka. Then you have to run FLUKA using this executable:
$FLUPRO/flutil/rfluka -e x_fluka -N0 -M1 yourinputfile

Alternatively, you can compile with Flair - you can find some instructions in the following FLUKA course slides: https://indico.cern.ch/event/489973/contributions/2000440/attachments/1272042/1972478/09_AdvancedUserRoutines2016.pdf

Cheers, Anton




________________________________________
From: bosqw7_at_mail.ustc.edu.cn [bosqw7_at_mail.ustc.edu.cn]
Sent: 22 February 2019 15:27
To: Fluka
Cc: Francesco Cerutti; Anton Lechner
Subject: About the combination of useer routines: SOURCE and MGDRAW

Dear Fluka experts,

I want to simulate the transport process of electrons being injected into a Ta target and record the birth position of photoneutrons. So I need to use the user routine SOURCE to load the Boltzman distributed eletrcon beam and the user routine MGDRAW to record the position of neutrons. But after compiling and linking the two routines, how to run the executables? I have tried to launch the usual rfluka script with the option -e myfluka -e mgdraw. But it seems that the successful launch of the mgdraw caused the faile launch of the source. I also tried to paste the code of the MGDRAW to the end of the routine source, but no data file of mgdraw was genetrated while the source was lauched successfully. What should I do to get the right result?


Best Regards

Qi Wei



__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Fri Feb 22 2019 - 17:48:05 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 22 2019 - 17:48:07 CET