Re: [fluka-discuss]: Error when creating source.f executable

From: Srinidhi Bheesette <srinidhi.bheesette_at_cern.ch>
Date: Fri, 26 May 2017 16:45:55 +1200

Hi Luigi

Thanks for your reply.

I have tried several ways of reading a file. I have summarised them below:

*Full path assignment:*

[image: Inline images 2]
This throws up the following error:

[image: Inline images 1]

*Path variable assignment: *

[image: Inline images 2]

The error I get in this case is
[image: Inline images 1]
Is that right place to initialize the variable fileplace?

*Call routine: *
[image: Inline images 1]
This doesn't work either. Am I again getting the initialization wrong? Or
if the syntax for the CALL OAUXFI routine wrong?

Could you advise me, please?

Thanks in advance. Hoping to hear from you.


Cheers,
Shri

(Srinidhi Bheesette)

On 25 May 2017 at 19:51, Luigi Salvatore Esposito <
luigi.salvatore.esposito_at_cern.ch> wrote:

> Dear Srinidhi,
>
> Use the OAUXFI routine to open the file, otherwise with the OPEN routine
> you have to specify the full path.
>
> More details in http://www.fluka.org/web_archive/earchive/prova/0909.html
>
> Hope this could help.
>
> Best regards, luigi
>
>
>
>
>
>
>
> *From: *<owner-fluka-discuss_at_mi.infn.it> on behalf of Srinidhi Bheesette <
> srinidhi.bheesette_at_cern.ch>
> *Date: *Thursday, 25 May 2017 at 01:41
> *To: *Joachim Vollaire <joachim.vollaire_at_cern.ch>
> *Cc: *Francesco Cerutti <Francesco.Cerutti_at_cern.ch>, FLUKA discussion <
> fluka-discuss_at_fluka.org>
> *Subject: *Re: [fluka-discuss]: Error when creating source.f executable
>
>
>
> Hi Joachim,
>
>
>
> Thanks for your mail.
>
> I tried the command you mentioned but it gave me an error. However this
> worked:
>
>
>
> $FLUPRO/flutil/rfluka -e source_shri -N0 -M1 ex08.inp
>
>
>
> The run doesn't do through and I spot this error in log file
>
>
>
> [image: nline images 2]
>
>
>
> But, I compiled the source and executable using flair and its completes
> without any error.
>
>
>
> [image: nline images 3]
>
>
>
> I have attached the source.f with this mail. Could you please let me know
> where I am going wrong.
>
>
>
> Yes I have included the SOURCE, USRICALL and USROCALL in the *.inp file
> (attached).
>
>
>
> Thanks in advance.
>
>
>
> Cheers,
>
> Shri
>
>
>
> (Srinidhi Bheesette)
>
>
>
> On 24 May 2017 at 18:25, Joachim Vollaire <joachim.vollaire_at_cern.ch>
> wrote:
>
> Hi
>
>
>
> Everything can be done either from flair or from the terminal.
>
>
>
> From the terminal use –e to specify the fluka executable you created (and
> not the default flukahp in the $FLUPRO directory):
>
> $FLUPRO/flutil/rfluka -N0 -M5 "myexample.inp –e yourflukaexec
>
>
>
> Or from flair in the run tab, there is an Exe button which allow you to
> select your customized executable.
>
>
>
> In the input file you must add a SOURCE card, otherwise the routine will
> never be called when primary particles are generated. If you don’t do it,
> default value or values specified in the cards used to define the source as
> BEAM or BEAMPOS will be used instead of the logic you have defined in the
> source routine.
>
> Hoping this help
>
> Greetings
>
> Joachim
>
>
>
> *From:* owner-fluka-discuss_at_mi.infn.it [mailto:owner-fluka-discuss_at_
> mi.infn.it] *On Behalf Of *Srinidhi Bheesette
> *Sent:* 19 May 2017 01:13
> *To:* Francesco Cerutti <Francesco.Cerutti_at_cern.ch>
> *Cc:* FLUKA discussion <fluka-discuss_at_fluka.org>
> *Subject:* Re: [fluka-discuss]: Error when creating source.f executable
>
>
>
> Hi Francesco,
>
>
>
> Thanks for your reply.
>
> Yes, I realised I was copying the odd character from the FLUKA tutorial
> slides.
>
>
>
> It works!
>
>
>
> But I have few more doubts:
>
> 1. How do I attach the executable file created by the fair run?
> 2. Do I need to specify a source routine in the input file?
> 3. Or can I manually run the simulation using
> the $FLUPRO/flutil/rfluka -N0 -M5 "myexample.inp" from the terminal?
>
> I have attached the input file, source.f and the *.dat file with this mail.
>
>
>
> Thanks in advance.
>
>
>
>
> Cheers,
>
> Shri
>
>
>
> (Srinidhi Bheesette)
>
>
>
> On 17 May 2017 at 19:13, Francesco Cerutti <Francesco.Cerutti_at_cern.ch>
> wrote:
>
>
> Hi
>
> the problem is with the character you used on your command line before "m"
> and "o", it's not a regular hyphen but something else.
>
> If you read the outcome, you can see:
> g77: -m: No such file or directory
> since your "-" is actually an odd character
>
> Best wishes
>
> Francesco
>
> **************************************************
> Francesco Cerutti
> CERN-EN/STI
> CH-1211 Geneva 23
> Switzerland
> tel. ++41 22 7678962
> fax ++41 22 7668854
>
> On Wed, 17 May 2017, Srinidhi Bheesette wrote:
>
> > Hi all,
> > I am trying to compile a source.f file. The object file gets generated
> > without any error but then when I generate the executable file I am
> getting
> > I get the following messages:
>
> > Inline images 1
> >
> > Could you let me know where I am going wrong?
> > Help would be greatly appreciated.
> >
> > Thank you.
> >
> > Cheers,
> > Shri
> >
> > (Srinidhi Bheesette)
> >
> >
>
>
>
>
>




__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info

image.png
(image/png attachment: image.png)

image.png
(image/png attachment: 02-image.png)

image002.png
(image/png attachment: image002.png)

image.png
(image/png attachment: 04-image.png)

image001.png
(image/png attachment: image001.png)

image.png
(image/png attachment: 06-image.png)

image.png
(image/png attachment: 07-image.png)

Received on Fri May 26 2017 - 08:16:23 CEST

This archive was generated by hypermail 2.3.0 : Fri May 26 2017 - 08:16:31 CEST