Re: [fluka-discuss]: mgdaw.f problems

From: Ding, Qi <q.ding_at_fz-juelich.de>
Date: Mon, 25 Jan 2021 09:16:28 +0000

Dear Stefan,


thanks for your help.

it's working now.


Best regards,


Qi Ding

________________________________
From: Stefan E. Mueller <stefan.mueller_at_hzdr.de>
Sent: 22 January 2021 14:10:05
To: Ding, Qi
Cc: fluka-discuss_at_fluka.org
Subject: Re: [fluka-discuss]: mgdaw.f problems

Hi Qi Ding -

on the commandline, you can do

echo $FLUPRO

to see to which path $FLUPRO is set.

It could be that your executable was linked with $FLUPRO set to a path
which pointed to FLUKA2011, while now you are trying to execute it in a
commandline shell which has $FLUPRO pointing to a path of FLUKA2020. Then
the executable with your custom mgdraw.f would try to use FLUKA2011, and
the (standard) FLUKA executable without custom mgdraw.f (which comes
with the installation of FLUKA) would use FLUKA2020 (as it should).

To ensure that $FLUPRO has the right path, you can do (assuming you are
using a bash-like shell)

export FLUPRO=/path/to/FLUKA2020_directory

After, I would recompile the executable by doing

$FLUPRO/lfluka -o FLUKA_mgdraw.exe mgdraw.f

and then run your input

$FLUPRO/flutil/rfluka -e ./FLUKA_mgdraw.exe -N0 -M5 ./check10_1pn

This made your input work for me. Hopefully it will do the trick also for
you.

Cheers,

         Stefan

--
Stefan E. Mueller
Department of Information Services and Computing - Computational Science
and Institute of Radiation Physics
Helmholtz-Zentrum Dresden-Rossendorf
Tel: +49 (0351) 260 3847
Stefan.Mueller_at_hzdr.de
http://www.hzdr.de
Vorstand: Prof. Dr. Sebastian M. Schmidt, Dr. Diana Stiller
Vereinsregister: VR 1693 beim Amtsgericht Dresden
On Fri, 22 Jan 2021, Ding, Qi wrote:
>
> Dear Stefan,
>
>
> thanks for your checking.
>
> I have some output files of simulation tasks without mgdraw.f performing
> successfully.
>
> and I compared the output files with one of input with mgdraw.f
>
> it turns out one is running fluka2020, the other one is fluka2010(as shown
> in below screenshot respectively).
>
> but all the setting procedures are the same for different simulation tasks,
> I don't know why they are performed in different versions.
>
> how can I make sure $FLUPRO set to fluka2020.
>
>
> [IMAGE]
> [IMAGE]Best regards,
>
> Qi Ding
>
> ____________________________________________________________________________
> From: Stefan E. Mueller <stefan.mueller_at_hzdr.de>
> Sent: 22 January 2021 11:40:15
> To: Ding, Qi
> Cc: fluka-discuss_at_fluka.org
> Subject: Re: [fluka-discuss]: mgdaw.f problems
> Dear Qi Ding,
>
> I had a look at the logfiles, and they seem to suggest that you are
> runnning fluka2011, but maybe your executable was built with fluka2020?
>
> You should make sure your FLUPRO-variable is set to fluka2020 when
> running - now it
> looks to me that your executable is trying to access the wrong
> "nucear.bin"-file, and since fluka2020 contains more isotopes, it will
> try to access more data than is actual in the file it tries to access -
> this would explain the message.
>
> At line 120 of file ncdtrd.f (unit = 14, file = 'nuclear.bin')
> Fortran runtime error: I/O past end of record on unformatted file
>
> So you should make sure that when you build the executable and when
> running it, you have $FLUPRO set to fluka2020.
>
> Cheers,
>
>          Stefan
>
> --
> Stefan E. Mueller
> Department of Information Services and Computing - Computational Science
> and Institute of Radiation Physics
> Helmholtz-Zentrum Dresden-Rossendorf
> Tel: +49 (0351) 260 3847
> Stefan.Mueller_at_hzdr.de
> http://www.hzdr.de
>
> Vorstand: Prof. Dr. Sebastian M. Schmidt, Dr. Diana Stiller
> Vereinsregister: VR 1693 beim Amtsgericht Dresden
>
> On Fri, 22 Jan 2021, Ding, Qi wrote:
>
> >
> >
> > Dear Stefan,
> >
> >
> > thanks for your detailed explanation.
> >
> > the version I use now is FLUKA2020.0.4.
> >
> > and the simulation task still stays in cycle 1 till now.
> >
> > there are log- and .out-files in the fluka_xxxxxx working directory but no
> > err.files produced.
> >
> > I checked the two files but I can't determine the specific reason why my
> > code didn't run.
> >
> > could you please help me check the files?
> >
> >
> >
> > Best regards,
> >
> >
> > Qi Ding
> >
> >
> >___________________________________________________________________________
> _
> > From: Stefan E. Mueller <stefan.mueller_at_hzdr.de>
> > Sent: 22 January 2021 09:45:04
> > To: Ding, Qi
> > Cc: fluka-discuss_at_fluka.org
> > Subject: Re: [fluka-discuss]: mgdaw.f problems
> > Dear Qi Ding,
> >
> > with major version upgrades in FLUKA it may happen that user routines are
> > modified, and it is always good to check the user routine templates in
> > $FLUPRO/usermvax/ to see if there are relevant changes from one version
> > to another, and update the user routines accordingly.
> >
> > That said, I can run your input without any modification with
> > fluka2020.0.5 and it doesn't seem to give problems. It completes the first
> > cycle and gets on with the next one.
> >
> > In your case, just to be sure, you should give a look to
> > $FLUPRO/usermvax/mgdraw.f and update your mgdraw.f. One change in mgdraw.f
> > in version fluka2020 is that now there is a loop over the main stack
> > particles which is probably done to allow more than one source particle on
> > the stack, and some modifications for heavy ions and radioactive isotopes.
> >
> > I am not sure if this will affect your FLUKA application.
> >
> > In $FLUPRO/RELEASE-NOTES.fluka2020.0 you can find information about the
> > technical improvements and additions. Concerning modification of
> > user-written routines, it only advises to update the source.f-routines.
> >
> > So there must be a different reason why your code does not run. Do you get
> > errors or warnings in the .err- or .out-files produced in the fluka_xxxxxx
> > working directory?
> >
> >          Stefan
> >
> > --
> > Stefan E. Mueller
> > Department of Information Services and Computing - Computational Science
> > and Institute of Radiation Physics
> > Helmholtz-Zentrum Dresden-Rossendorf
> > Tel: +49 (0351) 260 3847
> > Stefan.Mueller_at_hzdr.de
> > http://www.hzdr.de
> > [PicOri?pOid=57529]
> > HZDR – Helmholtz-Zentrum Dresden-Rossendorf
> > www.hzdr.de<http://www.hzdr.de>
> > The Helmholtz-Zentrum Dresden-Rossendorf is a member of the Helmholtz
> > Association of German Research Centres pursuing new insights that will
> allow
> > us to maintain and improve all of our lives. That is why the HZDR conducts
> > research in the fields of Energy, Health and Matter in Dresden and at five
> > other locations. Our large-scale facilities are also available to external
> > guests from around the world to help answer the decisive questions of our
> > societies.(Contact details: &#43;49 351 260-0 / contact_at_hzdr.de)
> >
> >
> > Vorstand: Prof. Dr. Sebastian M. Schmidt, Dr. Diana Stiller
> > Vereinsregister: VR 1693 beim Amtsgericht Dresden
> >
> > On Thu, 21 Jan 2021, Ding, Qi wrote:
> >
> > >
> > > Dear FLUKA experts,
> > >
> > > is there a big difference between FLUKA2020 and FLUKA2011.
> > > or where I can find the difference between the two version.
> > > because I could run simulations with mgdraw.f file before version
> > upgraded.
> > > I upgraded the version(now I use fluka2020) last week.
> > > I try to run similar simulation today, the situation is it stays in the
> > > first cycle all the time.(the number of particles is 1000000, which is
> > same
> > > as before)
> > > could you please help me check it  if there is anything wrong ?
> > > please find the input and mgdraw.f in the attachment.
> > >
> > > Best regrds,
> > >
> > > Qi Ding
> > >
> > >
> > >
> >>--------------------------------------------------------------------------
> -
> >
> > > ---------------------
> >>--------------------------------------------------------------------------
> -
> >
> > > ---------------------
> > > Forschungszentrum Juelich GmbH
> > > 52425 Juelich
> > > Sitz der Gesellschaft: Juelich
> > > Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
> > > Vorsitzender des Aufsichtsrats: MinDir Volker Rieke
> > > Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
> > > Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt
> >>--------------------------------------------------------------------------
> -
> >
> > > ---------------------
> >>--------------------------------------------------------------------------
> -
> >
> > > ---------------------
> > >
> > >
> > >
> >
> >
>
>
__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Mon Jan 25 2021 - 12:07:21 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 25 2021 - 12:07:36 CET