Re: Re: Re: [fluka-discuss]: Problem using last version of FLUKA with Ubuntu 18.04

From: emilio <emilio_at_impcas.ac.cn>
Date: Wed, 30 Sep 2020 16:56:52 +0800 (GMT+08:00)

Dear Paola,

thank you very much, you were completely right, the space was the cause of the problem.

Thank you for your help
Best Regards
Emilio Ciuffoli


&gt; -----Original Messages-----
&gt; From: "Paola Sala" <paola.sala_at_mi.infn.it>
&gt; Sent Time: 2020-09-29 21:03:54 (Tuesday)
&gt; To: emilio <emilio_at_impcas.ac.cn>
&gt; Cc: paola.sala_at_mi.infn.it, fluka-discuss_at_fluka.org
&gt; Subject: Re: Re: [fluka-discuss]: Problem using last version of FLUKA with Ubuntu 18.04
&gt;
&gt; Hello
&gt; If I see correctly, the name of your directory has a space in it. This
&gt; will completely confuse the procedure, that will "see" the last part of
&gt; the directory name as a separate parameter.
&gt; Please rename it to, for instance, Water_Target or WaterTae=rget
&gt; Hope this solves the problem
&gt;
&gt; Paola
&gt; &gt; Dear Paola,
&gt; &gt;
&gt; &gt; thank you very much for your answer.
&gt; &gt;
&gt; &gt; The code I sent was written several years ago (2017, I think), and it was
&gt; &gt; running at the time, however it seems that it's not compatible with the
&gt; &gt; new version of FLUKA/Flair anymore. I corrected all the mistakes you
&gt; &gt; pointed out (I directly eliminated all the Flair expressions, see the
&gt; &gt; attached file Water-Target.inp), but it still does not run; if I try to
&gt; &gt; run from terminal I get the same problem (no results and a very long .out
&gt; &gt; file), moreover the terminal output is the following:
&gt; &gt;
&gt; &gt; emilio_at_Sauron:~/Fluka-Simulation/piDAR/Water Target$ $FLUPRO/flutil/rfluka
&gt; &gt; -M1 -N0 Water-Target &amp;
&gt; &gt; [7] 12850
&gt; &gt; emilio_at_Sauron:~/Fluka-Simulation/piDAR/Water Target$ $TARGET_MACHINE =
&gt; &gt; Linux
&gt; &gt; $FLUPRO = /home/emilio/Fluka
&gt; &gt; /home/emilio/Fluka/flutil/rfluka: 148: [:
&gt; &gt; /home/emilio/Fluka-Simulation/piDAR/Water: unexpected operator
&gt; &gt;
&gt; &gt; Initial seed already existing
&gt; &gt; Running fluka in /home/emilio/Fluka-Simulation/piDAR/Water
&gt; &gt; Target/fluka_12850cp: target 'Water' is not a directory
&gt; &gt; ln: target 'fort.1' is not a directory
&gt; &gt; /home/emilio/Fluka/flutil/rfluka: 262: [:
&gt; &gt; /home/emilio/Fluka-Simulation/piDAR/Water: unexpected operator
&gt; &gt; /home/emilio/Fluka/flutil/rfluka: 262: [:
&gt; &gt; /home/emilio/Fluka-Simulation/piDAR/Water: unexpected operator
&gt; &gt; /home/emilio/Fluka/flutil/rfluka: 262: [:
&gt; &gt; /home/emilio/Fluka-Simulation/piDAR/Water: unexpected operator
&gt; &gt; /home/emilio/Fluka/flutil/rfluka: 262: [:
&gt; &gt; /home/emilio/Fluka-Simulation/piDAR/Water: unexpected operator
&gt; &gt; /home/emilio/Fluka/flutil/rfluka: 269: [:
&gt; &gt; /home/emilio/Fluka-Simulation/piDAR/Water: unexpected operator
&gt; &gt; /home/emilio/Fluka/flutil/rfluka: 275: [:
&gt; &gt; /home/emilio/Fluka-Simulation/piDAR/Water: unexpected operator
&gt; &gt;
&gt; &gt; ================================ Running FLUKA for cycle # 1
&gt; &gt; =============================================
&gt; &gt; emilio_at_Sauron:~/Fluka-Simulation/piDAR/Water Target$
&gt; &gt;
&gt; &gt; Do you have any idea what could be the problem?
&gt; &gt;
&gt; &gt; To complicate even further the matter, I also wrote a very simple code,
&gt; &gt; just to test that everything is working in a very simplified setting (see
&gt; &gt; the attached file TestOldFlair.inp) and I'm able to run it without any
&gt; &gt; problem using Flair (I didn't try to run by terminal, because it seems not
&gt; &gt; relevant in this case).
&gt; &gt;
&gt; &gt; Thank you for your help
&gt; &gt; BEst Regards
&gt; &gt; Emilio Ciuffoli
&gt; &gt;
&gt; &gt;&gt; -----Original Messages-----
&gt; &gt;&gt; From: "Paola Sala" <paola.sala_at_mi.infn.it>
&gt; &gt;&gt; Sent Time: 2020-09-28 22:03:56 (Monday)
&gt; &gt;&gt; To: emilio <emilio_at_impcas.ac.cn>
&gt; &gt;&gt; Cc: fluka-discuss_at_fluka.org
&gt; &gt;&gt; Subject: Re: [fluka-discuss]: Problem using last version of FLUKA with
&gt; &gt;&gt; Ubuntu 18.04
&gt; &gt;&gt;
&gt; &gt;&gt; Hello
&gt; &gt;&gt; the strange thing is that the input you sent could never run, and the
&gt; &gt;&gt; run
&gt; &gt;&gt; should crash while reading the input, well before reaching the start
&gt; &gt;&gt; card.
&gt; &gt;&gt; There are FLAIR expressions in it: in orted to have FLUKA digest them,
&gt; &gt;&gt; uone should add a GLOBAL card with sdum=OLDFLAIR
&gt; &gt;&gt; The PHYSICS COALESCENCE card is empty, would not be accepted: what(1)
&gt; &gt;&gt; should be set to +1 or -1
&gt; &gt;&gt; There are estimators with repeated names: this is no longer accepted (to
&gt; &gt;&gt; avoid mistakes)
&gt; &gt;&gt;
&gt; &gt;&gt; Maybe you can try to run the input outside flair, to be sure of what is
&gt; &gt;&gt; really taken as input:
&gt; &gt;&gt;
&gt; &gt;&gt; $FLUPRO/flutil/rfluka -M1 -N0 Water-Target &amp;
&gt; &gt;&gt; (&amp; is to run it in the background)
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt; Hope this helps
&gt; &gt;&gt; Paola
&gt; &gt;&gt;
&gt; &gt;&gt; &gt; Dear FLUKA experts,
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; I have some problems running the latest release of FLUKA in Ubuntu
&gt; &gt;&gt; 18.04.
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; I used FLUKA some years ago (at least until 2017) without any problem;
&gt; &gt;&gt; &gt; recently I started a new project that requires some simulations, so I
&gt; &gt;&gt; &gt; installed the last version of FLUKA and Flair, however I had some
&gt; &gt;&gt; &gt; problems.
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; First I was getting the error (in the file .log) "Fortran runtime
&gt; &gt;&gt; error:
&gt; &gt;&gt; &gt; Incorrect extent in VALUE argument to DATE_AND_TIME intrinsic: is -2,
&gt; &gt;&gt; &gt; should be &gt;=8"
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; Googoling a bit, I found out that the problem was that I had the wrong
&gt; &gt;&gt; &gt; version of gfortran (7.5). Indeed, even if I had installed both
&gt; &gt;&gt; gfortran-7
&gt; &gt;&gt; &gt; and gfortran-8, the command "gfortran" was likend by default to
&gt; &gt;&gt; version 7.
&gt; &gt;&gt; &gt; Namely:
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; emilio_at_Sauron:~/Fluka$ gfortran
&gt; &gt;&gt; &gt; gfortran gfortran-7 gfortran-8
&gt; &gt;&gt; &gt; emilio_at_Sauron:~/Fluka$ gfortran --version
&gt; &gt;&gt; &gt; GNU Fortran (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
&gt; &gt;&gt; &gt; Copyright (C) 2017 Free Software Foundation, Inc.
&gt; &gt;&gt; &gt; This is free software; see the source for copying conditions. There
&gt; &gt;&gt; is NO
&gt; &gt;&gt; &gt; warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
&gt; &gt;&gt; &gt; PURPOSE.
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; (there were some problems while running make, I was getting some fatal
&gt; &gt;&gt; &gt; errors, but I didn't notice at the beginning)
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; I'm not very familiar with Linux, but I Googled a bit more and I was
&gt; &gt;&gt; able
&gt; &gt;&gt; &gt; to change the version of gfrotran linked to the command using
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; sudo update-alternatives --install /usr/bin/gfortran gfortran
&gt; &gt;&gt; &gt; /usr/bin/gfortran-8 60
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; sudo update-alternatives --install /usr/bin/gfortran gfortran
&gt; &gt;&gt; &gt; /usr/bin/gfortran-7 40
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; sudo update-alternatives --config /gfortran
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; In this way I got
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; emilio_at_Sauron:~/Fluka$ gfortran --version
&gt; &gt;&gt; &gt; GNU Fortran (Ubuntu 8.4.0-1ubuntu1~18.04) 8.4.0
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; Now I'm able to install FLUKA correctly (I get no more fatal errors),
&gt; &gt;&gt; &gt; however my code still not cannot run.
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; Currently, if I try to run a FLUKA code (via Flair), I have an error
&gt; &gt;&gt; in
&gt; &gt;&gt; &gt; the .out file, it will says " Unexpected end of input: START
&gt; &gt;&gt; assumed"
&gt; &gt;&gt; &gt; so many7 times that the .out file will increase very rapidly in size
&gt; &gt;&gt; until
&gt; &gt;&gt; &gt; I kill the process or it fills the entire HD.
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; I tried to run again some old code, that was working with the previous
&gt; &gt;&gt; &gt; version of FLUKA, but I got the same results. In the attached files
&gt; &gt;&gt; you
&gt; &gt;&gt; &gt; can find the input card and a "reduced" copy of the output file (I
&gt; &gt;&gt; just
&gt; &gt;&gt; &gt; kept the first error line and cut all the rest, since otherwise it
&gt; &gt;&gt; would
&gt; &gt;&gt; &gt; have been several GB). Please notice also that, in the temporary
&gt; &gt;&gt; folder
&gt; &gt;&gt; &gt; created by Flair, the input card is present but empty, I have no idea
&gt; &gt;&gt; &gt; whether this is relevant or not.
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; I should mention that I had some problems during the installation of
&gt; &gt;&gt; &gt; geoviewer for Flair, I found an answer on this mailing list
&gt; &gt;&gt; &gt; (http://www.fluka.org/web_archive/earchive/new-fluka-discuss/13766.html)
&gt; &gt;&gt; &gt; regarding a similar problem and I followed the instructions, changing
&gt; &gt;&gt; &gt; manually pow10 -&gt; exp10 in some files (of geoviewer, not FLUKA) to fix
&gt; &gt;&gt; the
&gt; &gt;&gt; &gt; problem, however I cannot see how this could create my current
&gt; &gt;&gt; problem.
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; Do you have any suggestions? Does anyone else had a similar problem?
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; Thank you very much for your help
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; Best Regards
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; Emilio Ciuffoli
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt; Paola Sala
&gt; &gt;&gt; INFN Milano
&gt; &gt;&gt; tel. Milano +39-0250317374
&gt; &gt;&gt; tel. CERN +41-227679148
&gt; &gt;&gt;
&gt; &gt;&gt; __________________________________________________________________________
&gt; &gt;&gt; You can manage unsubscription from this mailing list at
&gt; &gt;&gt; https://www.fluka.org/fluka.php?id=acc_info
&gt; &gt; </emilio_at_impcas.ac.cn></paola.sala_at_mi.infn.it>
&gt;
&gt;
&gt; Paola Sala
&gt; INFN Milano
&gt; tel. Milano +39-0250317374
&gt; tel. CERN +41-227679148
&gt;
&gt; __________________________________________________________________________
&gt; You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
</emilio_at_impcas.ac.cn></paola.sala_at_mi.infn.it>

__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Wed Sep 30 2020 - 12:58:00 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 30 2020 - 12:58:24 CEST