Re: FLUKA error in Ubuntu

From: Florian Sommerer <florian.sommerer@cern.ch>
Date: Sat Jul 12 2008 - 16:32:18 CEST

Dear Ariel,

I was running FLUKA now on Ubuntu 8.04 and got the output below. I
think I understand what happens: The "-e" comes from the use of the
"echo -e" used in the rfluka script which is surprisingly
misinterpreted on bash in Ubuntu. You can ignore that problem.
The other problem "unexpected character" is because bash does not know
how to handle comparisons by using the == sign. If I understand the
problem correctly it effects you only if you want to interrupt a run
before the total number of primary particles is reached.
However, in the test case I was running, apart for the messages
printed on the screen I could not find any error in the output files.

In the output you send the -e is missing. Do you get the -e also in
your original output.
Do you also get the "========" around "Running FLUKA for cycle # 1" ?
Do you observe any errors in the output files?
Could you ever run FLUKA on Ubuntu without getting this messages?

Cheers, Florian

Here is the output of my run:

$TARGET_MACHINE = Linux
$FLUPRO = /home/sommerer/soft/fluka
/home/sommerer/soft/fluka/libec_thihecufealw_10t.pemf
6462: old priority 0, new priority 10
-e
Initial seed copied from /home/sommerer/soft/fluka
-e
Running fluka in /home/sommerer/discuss/1/fluka_6462
-e
================================ Running FLUKA for cycle # 1
=============================================
-e
Removing links
-e
Removing temporary files
-e
Saving output and random number seed
-e
Saving additional files generated
[: 321: ==: unexpected operator
-e
================================ Running FLUKA for cycle # 2
=============================================
-e
Removing links
-e
Removing temporary files
-e
Saving output and random number seed
-e
Saving additional files generated
[: 321: ==: unexpected operator
-e
End of FLUKA run

On Jul 10, 2008, at 10:50 PM, Ariel Shnitzer wrote:

> Good day everyone, I am getting an error message when trying to run
> FLUKA in Ubuntu 8.04 and was hoping for some assistance.
>
> To compile and link, I use terminal to go to my fluka directory after
> copying the modified source.f file.
> $FLUPRO/flutil/fff usermvax/source.f
> $FLUPRO/flutil/lfluka -o myslab -m fluka $FLUPRO/usermvax/source.o
>
>
> Then in my geometry directory, I type:
> $FLUPRO/flutil/rfluka -e $FLUPRO/myslab -N0 -M1 slab
>
>
>
> This outputs to the terminal:
>
> $TARGET_MACHINE = Linux
> $FLUPRO = /home/ariel/myfluarea
> /home/ariel/myfluarea/libec_thihecufealw_10t.pemf
> 7329: old priority 0, new priority 10
>
> Initial seed already existing
> Running fluka in /home/ariel/radphys/slab/fluka_7329
>
> Running FLUKA for cycle # 1
> Removing links
> Removing temporary files
> Saving output and random number seed
> No ranslab002 generated!
>
> Saving additional files generated
> 321: unexpected operator
>
> End of FLUKA run
>
>
> I have had problems before with Ubuntu being "too" user-friendly, am I
> just missing some package that lets terminal interpret the -e
> command? The user next to me is running on OpenSUSE 10.3, and using
> the exact same procedure, the script runs fine. Thanks,
> Ariel Shnitzer
>
Received on Sat Jul 12 18:07:00 2008

This archive was generated by hypermail 2.1.8 : Sat Jul 12 2008 - 18:07:00 CEST