As I mentioned in a reply to the same thread, you need to add ../ to point to the file, which is at the parent directory during fluka execution.
-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: Sunday, July 5, 2020 11:55 PM
To: fluka_collaboration <fluka-discuss_at_fluka.org>
Subject: [fluka-discuss]: Using source.f can not read data from a file?
Dear Fluka experts:
I write a user-written source,the fortran code can be built but the fluka input file can not
run well,so i write a so simple user written-source named readfile.f,the same ploblem occurs,
but if i do not read data from a file,evergything become ok,the difference only like this below:
read data from file: no data from file;
open(unit=21,file="NeuEne") energy=1e-3
read(21,*)energy
rewind(21)
the related files can be found in the email attachment enclosure.
which details i did not watch for?
please help me!
with best regard!
请注意:在您阅读本邮件时,如您了解本邮件内容涉及商业秘密,请您遵守与发信人的商务约定,保守商业机密。如您发现本邮件内容涉及重要商业秘密或与国家秘密相关,请您即刻联系发信人,确认邮件内容是否适于通过互联网传递。
__________________________________________________________________________
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