I am elementary Fortran programmer in Linux(Ubuntu). I have a code that run with Intel Visual Fortran in Windows but when I try to compile this code with gfortran on Linux I get this error:
Error: Unclassifiable statement at (1)
My code is :
module mesh
type::meshreader
private
integer::NF
integer::y
contains
procedure , public :: getNF
end type
contains
function getNF(this)
class(meshreader) :: this
integer :: getNF
getNF = this.NF
end function
end module
Implicit None
print*, 'Hello'
End
I think gfortran can not know this line of code: getNF = this.NF. Can anyone help me to solve this problem?