Re: [fluka-discuss]: Compiling and linking flukadpm3 along with user routine source.f

From: Sujoy Chatterjee <sujoy_at_vecc.gov.in>
Date: Fri, 23 Aug 2019 15:05:56 +0530

Thank you Luigi for your kind answer and patience to explain the facts. Thanks to Timo as well.
It worked nicely.

with regards,
डॉ. सुजय चटर्जी/Dr. Sujoy Chatterjee
भाभा परमाणु अनुसंधान केंद्र/Bhabha Atomic Research Centre
1/ए एफ विधान नगर/1/AF-Bidhannagar,
कोलकाता - 700064/Kolkata - 700064

-----"Luigi Salvatore Esposito" <luigi.salvatore.esposito_at_cern.ch> wrote: -----
To: "Sujoy Chatterjee" <sujoy_at_vecc.gov.in>
From: "Luigi Salvatore Esposito" <luigi.salvatore.esposito_at_cern.ch>
Date: 08/22/2019 05:45PM
Cc: "Fluka Discussion list" <fluka-discuss_at_fluka.org>
Subject: Re: [fluka-discuss]: Compiling and linking flukadpm3 along with user routine source.f

     Dear Sujoy,

  
You need only one executable:
> $FLUPRO/flutil/fff source.f # it create the source.o
> $FLUPRO/flutil/ldpmqmd -o my_fluka source.o # it compile FLUKA and link your source.o
> $FLUPRO/flutil/rfluka -e my_fluka my_input # it runs your fluka input with your custom executable

  
As mentioned before, you can do the same with Flair.
More details in the manual: 3.3} and F2.1} for the compilation from command line and Flair, respectively.
 

  
First clarification: fff does not create any executable but it’s script that creates object files
 
Second additional clarification: the usrrnc.f is not a post processing tool but a user routine that you can change and use during the FLUKA execution, like the source.f above

  
Best luigi

   
On 22 Aug 2019, at 13:47, Sujoy Chatterjee <sujoy_at_vecc.gov.in> wrote:
 
Dear Luigi,
 I am sorry that I am not able to explain my problem properly. May be the language is not very clear.
 
The file usrrnc.o in your reply is the user-routine for post processing the files for residual nuclei. I do not want to change it. As per my understanding ldpmqmd links dmpjet and produces the executable flukadpm3.
  
I am trying to again reframe my question once again.
  The new version of FLUKA requires link rQMD-2.4 and activate ion transport for residual nuclei calculations. Quoting from release notes the following:
 ".......and (as a consequence of coalescence) it would be wise to link with rQMD-2.4 (and DPMJET) and activate ion transport and interactions. These suggestions are mandatory for residual nuclei calculations."
 Hence I have run the script ldpmqmd script which has generated the executable "flukadpm3". This executable has been launched using the rfluka script with option "-e flukadmp3" along with my input file for resnuclei calculations. This has been done using flair, which allows to attach one executable.
 Now that I want to do the same with modified source routine source.f, I have run the fff script and produced another executable "source".
 The problem is that right now I am having two executables, 1) flukadpm3 and 2) source. I want to run both these executables with rfluka script. Flair allow to attach only one executable at a time. So, how do I attach two executable ?
 If I can launch the same using command prompt, where do I write the PATH to two executables ?
 
 
 
 with regards,
 डॉ. सुजय चटर्जी/Dr. Sujoy Chatterjee
 भाभा परमाणु अनुसंधान केंद्र/Bhabha Atomic Research Centre
 1/ए एफ विधान नगर/1/AF-Bidhannagar,
 कोलकाता - 700064/Kolkata - 700064
 
 
 -----"Luigi Salvatore Esposito" <luigi.salvatore.esposito_at_cern.ch> wrote: -----
 To: "Sujoy Chatterjee" <sujoy_at_vecc.gov.in>
 From: "Luigi Salvatore Esposito" <luigi.salvatore.esposito_at_cern.ch>
 Date: 08/22/2019 03:29PM
 Cc: "Fluka Discussion list" <fluka-discuss_at_fluka.org>
 Subject: Re: [fluka-discuss]: Compiling and linking flukadpm3 along with user routine source.f
 
 No.
 You need only on executable that you can create from command line
 $> ldpmqmd -m fluka usrrnc.o source.o
 
 Or equivalently in Flair.
 
 Best, luigi
 
 
> On 22 Aug 2019, at 11:16, Sujoy Chatterjee <sujoy_at_vecc.gov.in> wrote:
>
> Thanks Luigi for the reply. Now that I have two executable, one flukadpm3 and the one from the user subroutine source.f, how do I run the two executable files, at a time with "-e" command or with flair ?
>
> with regards,
> डॉ. सुजय चटर्जी/Dr. Sujoy Chatterjee
> भाभा परमाणु अनुसंधान केंद्र/Bhabha Atomic Research Centre
> 1/ए एफ विधान नगर/1/AF-Bidhannagar,
> कोलकाता - 700064/Kolkata - 700064
>
> -----"Luigi Salvatore Esposito" <luigi.salvatore.esposito_at_cern.ch> wrote: -----
> To: "Sujoy Chatterjee" <sujoy_at_vecc.gov.in>
> From: "Luigi Salvatore Esposito" <luigi.salvatore.esposito_at_cern.ch>
> Date: 08/22/2019 02:24PM
> Cc: "Fluka Discussion list" <fluka-discuss_at_fluka.org>
> Subject: Re: [fluka-discuss]: Compiling and linking flukadpm3 along with user routine source.f
>
> Dear Sujoy,
> you can compile and link your user routine both using ldpmqmd or Flair.
>
> For the first case you can use this command
> $> ldpmqmd -m fluka usrrnc.o
>
> For the second case, you can do it from the tab Compile in Flair (accessible from the top right menu).
>
> More details in the manual: 3.3} and F2.1} respectively.
>
> Hope this could help
> Best luigi
>
>
>> On 22 Aug 2019, at 09:30, Sujoy Chatterjee <sujoy_at_vecc.gov.in> wrote:
>>
>> Dear all,
>> I require to score RESNUCLE in my input file using modified source subroutine. I have compiled both of them separately(flukadpm3 by using script ldpmqmd and source subroutine using fff script). Now I would like to link both these so that I can generate RESNUCLE using modified source subroutine. How do I do the same through command prompt ? Can I use FLAIR for the same ?
>>
>> Thanking you in advance.
>>
>> with regards,
>> डॉ. सुजय चटर्जी/Dr. Sujoy Chatterjee
>> भाभा परमाणु अनुसंधान केंद्र/Bhabha Atomic Research Centre
>> 1/ए एफ विधान नगर/1/AF-Bidhannagar,
>> कोलकाता - 700064/Kolkata - 700064
>>
>>
>> __________________________________________________________________________
>> You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
>>
>
 
    
    


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Fri Aug 23 2019 - 12:46:53 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 23 2019 - 12:47:04 CEST