gfortran can't find modules

Hey folks,

I'm relatively new with fortran programming and I'm having some trouble getting my code to compile. I've put all my subroutines in modules to improve error correcting.

The problem is, when I go to compile, I get this error:

Fatal Error: Can't open module file 'integrals.mod' for reading at (1): No such file or directory

The module is called integrals and is contained with the same file as all my other code. Why won't gfortran just produce the module?

Regards,

CmdrGuard

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Fortran compilation and modules

Make sure that the generating source (integrals.f95) is being compiled before any other source file includes a "use integrals" line (your module itself may be called something different). Here's a useful link about

http://www.nicdan.id.au/computers/compiling/recompile.html

Hope this helps!

Thanks, mathman314!

Thanks, mathman314!