Re: Re: [fluka-discuss]: error in compling magfld.f

From: yaoyang <yangyao15_at_mails.ucas.ac.cn>
Date: Mon, 5 Feb 2018 09:51:38 +0800 (GMT+08:00)

I follow your advice, wow, it really works! Thank you so much for your kind help.

在2018-02-05 00:55:43,paola sala<paola.sala_at_cern.ch>写道:
> Dear Yao Yang
> one of the regions is not converted to number in the initialization of
> mgdraw. You see it in the output file:
> " "Quad2A" region is number:           -1"
> Reason is that the string identifying the region name in the GEON2R call
> must be 8 character long. If you change to
> CALL GEON2R( "Quad2A  ", NUMQUA2, IERR ) (adding 2 blanks to Quad2A) it
> works
> Regards
> Paola
> On 02/03/2018 04:11 PM, yaoyang wrote:
> >
> > Hello fluka users,
> >
> > I am trying to add magnetic field into quadrupole magnets(with
> > different length and aperture radius) through the magfld.f user
> > routine. I have learded the input file and magfld.f file of
> > Exercise4 shown in the 4th FLUKA advanced course and workshop(website:
> > https://indico.cern.ch/event/489973/timetable/#all). Based on the
> > example in Ex4, I try to add a new Quadrupole Q5(the prototype is Q2),
> > thich the parameters are different with Q1. So I modified
> > the corresponding input file and magfld.f file in order to add the Q5.
> > When I compile the file, it failed. And 'NO MAGNETIC FIELD IN THIS
> > REGION'shown in the output error file. I attached my modified input
> > file and magfld.f file below. Any suggeations or comments will be
> > appreciated. Thank you very much in advance.
> >
> > Best regards.
> >
> > Yao Yang
> >
>
> __________________________________________________________________________
> You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info

(Ƨځ맲r*'~&x%Zm 0nߖi'iw
Received on Mon Feb 05 2018 - 04:15:16 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 05 2018 - 05:18:20 CET