Re: [fluka-discuss]: problems of adding magnetic field to a specific region

From: Mikhail Polkovnikov <pmk_at_ihep.ru>
Date: Wed, 11 Dec 2019 21:45:58 +0300

On 06.12.2019 8:20, yangt_at_ihep.ac.cn wrote:
>
> Dear FLUKA experts and users,
>
>
> Recently, I want to add a magnetic field to a certain region, I copy
> the main code from the advanced course website,however, I find it
> doesn't apply the field successfully. I submitted the problems several
> days ago, but yet I don't receive some suggestions. After submitting,
> I have checked the code carefully for several days, and I can't find
> the problem.
>
> the code of applying to the region is as follows:
>
>          CALL GEON2R("pipenei2",pipe2,IERR)
> CALL GEON2R("pipenei4",pipe4,IERR)
> WRITE (LUNOUT,*) ' "pipenei2" region is number: ',pipe2
>          WRITE (LUNOUT,*) ' "pipenei4" region is number: ',pipe4
>
> after running, fluka reports errors:
>
>  "pipenei2" region is number: 2.3715151000379834E-322
>   "pipenei4" region is number: 2.4703282292062327E-322
>  Abort called from MAGFLD reason NO MAGNETIC FIELD IN THIS REGION! Run
> stopped!
>  STOP NO MAGNETIC FIELD IN THIS REGION!
> so the magnetic field is not applied successfully.
>
> I don't know where the problem is.
>
> attachments are the input file and the magnetic subroutine file.
>
> any suggestion is appreciable!
>
> best regards!
>
> Yang.
>
Greetings. Yang,


1. In MAGFLD routine variables from margetic field region must integer
type, not a float point type (npipe2, npipe2 instead of pipe2, pipe2).

2. GCC gfortran 9.2 have found another error is source routine
(incorrect definition of a constant)

All the changes in the attachment.






__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info

Received on Wed Dec 11 2019 - 21:11:03 CET

This archive was generated by hypermail 2.3.0 : Wed Dec 11 2019 - 21:36:36 CET