Re: [fluka-discuss]: source compilation and link problem

From: Vittorio Boccone <dr.vittorio.boccone_at_ieee.org>
Date: Tue, 9 Jun 2015 20:55:57 +0200

Dear Sandipan,
without any hesitation I can recommend you to revert the first modification
(#!/bin/bash -> #!/bin/sh).

There is more than meets the eye in $FLUPRO/flutils/fff (as also in the
other scrips in $FLUPRO/flutils/), and this modification is indeed what is
causing you the trouble.

The "[[" problem is caused by the *awk* flavour/version which is installed
by default on the Ubuntu's versions - *mawk* -
*mawk* conforms only the POSIX standards, on the contrary of the gawk
implementation which support also the GNU standards and is more commonly
used in Linux distributions.

A solution to this problem was already posted here.
http://www.fluka.org/web_archive/earchive/new-fluka-discuss/6448.html

Best,
Vittorio

On Tue, Jun 9, 2015 at 6:40 AM, <sandipan_at_barc.gov.in> wrote:

> Dear Sir,
>
> Thank you for your kind reply. Actually the problem is same for all the
> source.f files , even for the model source I got in the forum. I have
> attached the sources.
>
> Just to inform you , I have changed two points of fff script.
>
> 1. I have changed #!/bin/sh to #!/bin/bash to get rid of [[ problem.
>
> 2. I have changed FLUFOR=gfortran in the script.
>
> Waiting for your reply.
>
> Thanks in advance
> Sandipan
>
>
>
>
>
>
>
>
> > Dear Sandipan,
> > there might be a part of your code (cf252.f) where you use string
> > shorted
> > than what expected.
> > In order to reproduce the issue it would be nice if you could send over
> > your source file (if you can)
> > Best,
> > Vittorio
> >
> > On Mon, Jun 8, 2015 at 8:19 AM, <sandipan_at_barc.gov.in> wrote:
> >
> >>
> >> Dear Fluka Experts,
> >>
> >> I am using Ubuntu 14.04 and installed
> >> fluka2011.2c-linux-gfor64bitAA.tar.gz . Now though I am able to
> >> successfully compile a source.f card (gfortran compiler) through flair
> >> and
> >> executable file is successfully built (FLAIR NOTIFICATION) & attached
> >> with
> >> I/P file , but while running this file is being ignored and output is
> >> according to the maximum energy put in the beam card only .
> >>
> >>
> >> While running through terminal it gets terminated with following error
> >> ::
> >> "At line 25 of file actdline.f Fortran runtime error: Actual string
> >> length
> >> is shorter than the declared one for dummy argument 'card' (72/132)".
> >> This error is same for all different source.f files.
> >>
> >> Could you please suggest a solution?
> >>
> >> Thanks to everyone in the community -
> >>
> >> Regards
> >> Sandipan
> >
>


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Tue Jun 09 2015 - 22:40:01 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 09 2015 - 22:40:02 CEST