Re: [fluka-discuss]: opening file in fluka needs the absolute pathname?

From: Santana, Mario <msantana_at_slac.stanford.edu>
Date: Tue, 7 Jul 2020 16:20:15 +0000

Hi,

Please note that fluka is executed within a folder such as fluka_###, so you need to add the path to the file, which during execution will be in the parent directory, i.e. FILE='../n31'

Alternatively, you may use the fluka routine OAUXFI, which already takes care to look for the file in the parent directory among other possible locations.

e.g.

CALL OAUXFI (‘n31’, LUN, ‘CHOPT’, IERR)

-M


________________________________
From: owner-fluka-discuss_at_mi.infn.it <owner-fluka-discuss_at_mi.infn.it> on behalf of 李立华 <13691416247_at_ciae.ac.cn>
Sent: Tuesday, July 7, 2020 3:02 AM
To: fluka_collaboration <fluka-discuss_at_fluka.org>
Subject: [fluka-discuss]: opening file in fluka needs the absolute pathname?


Dear Fluka experts:

     i write a user-written source, in the fortran code, some data

was read from a file, when using open statement to open a file using

relative pathname like this:

OPEN(UNIT=31,FILE='n31',status='old')

the errors occur in the .log file like this:


At line 73 of file neutron_gamma_source.f (unit = 31)
Fortran runtime error: Cannot open file 'n31': 没有那个文件或目录


the .log file is in the email attachment enclosure


opening file in fluka needs the absolute pathname?


with best regards!


请注意:在您阅读本邮件时,如您了解本邮件内容涉及商业秘密,请您遵守与发信人的商务约定,保守商业机密。如您发现本邮件内容涉及重要商业秘密或与国家秘密相关,请您即刻联系发信人,确认邮件内容是否适于通过互联网传递。


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Tue Jul 07 2020 - 20:15:18 CEST

This archive was generated by hypermail 2.3.0 : Tue Jul 07 2020 - 21:15:39 CEST