I have a question about FORTRAN

  • Context: Fortran 
  • Thread starter Thread starter FuriousJ
  • Start date Start date
  • Tags Tags
    Fortran
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
FuriousJ
Messages
5
Reaction score
0
So I'm starting to learn FORTRAN, and I'm starting to do makefile's and modules.

Now the book I have that I've been learning from tells me all about Modules that I can put at the beginning of a file for use throughout the rest of that file, but seems to be glazing over how I can have a global.f95 module that I can call from other .f95 files. I assume this is more simple to do than the amount of time I've been trying to get it to work would indicate, is this a correct assumption? Or is it a difficult process?
 
Physics news on Phys.org
FuriousJ said:
So I'm starting to learn FORTRAN, and I'm starting to do makefile's and modules.

Now the book I have that I've been learning from tells me all about Modules that I can put at the beginning of a file for use throughout the rest of that file, but seems to be glazing over how I can have a global.f95 module that I can call from other .f95 files. I assume this is more simple to do than the amount of time I've been trying to get it to work would indicate, is this a correct assumption? Or is it a difficult process?

You must include a USE statement for the module
in each subroutine or function that requires use of the module.