I have inherited this fortran code from a colleague of mine and wish to expand on his research. He had written the fortran code in question for the Lahey Fujitsu windows compiler, I however do not have access to this software, nor do I have a windows machine. After receiving his code I had attempted to compile it on my Mac with gfortran and the code immediately gave the following error:
$ gfortran cavitymat.f95
cavitymat.f95:13.15:
USE MYVAR
1
Fatal Error: Can't open module file 'myvar.mod' for reading at (1): No such file or directory
The source code (cavitymat.f95) has all of the subroutines included as well as the module MYVAR. This module is responsible for calling and allocating all of the global variables. I have attempted to compile this with many different flags all producing the same error. If anyone can help me, I would like to know how to migrate this code over to the UNIX system.
Thank you in advance for your help!
Dave
$ gfortran cavitymat.f95
cavitymat.f95:13.15:
USE MYVAR
1
Fatal Error: Can't open module file 'myvar.mod' for reading at (1): No such file or directory
The source code (cavitymat.f95) has all of the subroutines included as well as the module MYVAR. This module is responsible for calling and allocating all of the global variables. I have attempted to compile this with many different flags all producing the same error. If anyone can help me, I would like to know how to migrate this code over to the UNIX system.
Thank you in advance for your help!
Dave