I have a question about FORTRAN

  • Context: Fortran 
  • Thread starter Thread starter FuriousJ
  • Start date Start date
  • Tags Tags
    Fortran
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
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.