gibuu / GiBUU_2016

The Giessen BUU project, a hadronic transport model for the simulation of nuclear reactions and heavy-ion collisions.
https://gibuu.hepforge.org
GNU General Public License v2.0
4 stars 5 forks source link

fortran files #2

Open ishfaq333 opened 4 years ago

ishfaq333 commented 4 years ago

The .job files are running successfully. But how do I run the Fortran (.f90) files what commands/libraries do I need to use

janusw commented 4 years ago

The .job files are running successfully.

Good. You mean you can build a GiBUU executable and use that to run job cards, correct?

More info on this topic is here: https://gibuu.hepforge.org/trac/wiki/running

But how do I run the Fortran (.f90) files what commands/libraries do I need to use

Could you explain what exactly you mean here? Which .f90 files do you want to 'run'?

ishfaq333 commented 4 years ago

The jobcards in the testrun folder compile successfully. Now, I wish to compile the files in the code folder say rmf. how do I run RMF.f90 file?

see the screenshot please Screenshot from 2020-03-19 14-53-05

janusw commented 4 years ago

The jobcards in the testrun folder compile successfully.

Jobcards do not compile. They are used as input for the GiBUU executable. See wiki link above.

Now, I wish to compile the files in the code folder say rmf.

The code files are compiled by running make (or similar) in the base folder (in your case GiBUU/release2019). For more details see: https://gibuu.hepforge.org/trac/wiki/compiling

how do I run RMF.f90 file?

That file is a module. You cannot run it. Normally you would run the GiBUU.x executable that is the result of compiling the source files (again, see https://gibuu.hepforge.org/trac/wiki/running).

ishfaq333 commented 4 years ago

running make command is ok, I get that.

But you are saying that the files in code folder (.f90 files) cannot be run as they are a module. what does that mean. The basic aim is to install GiBUU and then run/modify those .f90 files according to our need.

The .f90 files are there so we can run them and obtain the data

janusw commented 4 years ago

running make command is ok, I get that.

But you are saying that the files in code folder (.f90 files) cannot be run as they are a module. what does that mean.

You probably should read up on Fortran 90. Modules are a way to structure code, see e.g. https://web.stanford.edu/class/me200c/tutorial_90/09_modules.html

You cannot 'run' them on their own. They are usually part of a bigger code base, like in the case of GiBUU.

The basic aim is to install GiBUU and then run/modify those .f90 files according to our need.

Sure, you can modify those files, then recompile the complete code and run the resulting executable.

Note that once you modify any files, the results that you get are not those of the original GiBUU code any more. If you want to publish them in any form, you should publish your modifications of the code as well (e.g. by forking GiBUU on github), and state that you are using a modified version of the code.

If you're just playing around, that's fine of course ...