Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fortran files #2

Open
ishfaq333 opened this issue Mar 18, 2020 · 5 comments
Open

fortran files #2

ishfaq333 opened this issue Mar 18, 2020 · 5 comments

Comments

@ishfaq333
Copy link

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

@janusw
Copy link
Member

janusw commented Mar 19, 2020

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
Copy link
Author

ishfaq333 commented Mar 19, 2020

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
Copy link
Member

janusw commented Mar 19, 2020

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
Copy link
Author

ishfaq333 commented Mar 19, 2020

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
Copy link
Member

janusw commented Mar 19, 2020

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 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants