Topic: Help with Fortran MODULES
I'm a Fortran-IV and F77 veteran but new to F90 et seq.
I'm starting to make use of, but not yet fully familiar with,
- structured typing,
- allocatable arrays and
- modules.
Is there anuything I need to know about adding a module to a SF project?
Should the source filename be 'filename.mod' or can be anything I like, as long as I add it to the project?
Do I add it just like anuy otehr source file?
And lastly, can anyone tell me what's wrong with this code (see below)? I am getting an error message pegged to the USE statement that the file 'materials.mod' opened is not a GFORTRAN module file.
MODULE MATERIALS
C ----------------
C Materials
C
C jw 17-02-12 draft
C jw 17-02-12 last amended
Type :: MATERIAL
REAL :: Gamma,Emod,Gmod
CHARACTER(24) :: Desc
END TYPE
TYPE(MATERIAL), ALLOCATABLE :: MATLS(:)
LOGICAL MadeMAT, ShowsMAT, GoodMAT
INTEGER idMatPAN,
+ idMatPAN1,
+ idMatPAN2,
+ idMatTbl
END MODULE MATERIALS
Any help will be greatly appreciated.
---
John