Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

I have a question about FORTRAN

  1. Jan 18, 2012 #1
    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?
  2. jcsd
  3. Mar 15, 2012 #2
    You must include a USE statement for the module
    in each subroutine or function that requires use of the module.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook