- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am trying to compile a fortran program, galgel, in spec2000. While there is no problem for other benchmarks, I cannot compile galgel with fc9.0. The error message is as following:
ifort -c -o modules.o -O3 -fomit-frame-pointer modules.f90
fortcom: Error: modules.f90, line 1: Unrecognized token '#' skipped
C ############ Maximal sizes ####################################
--^
fortcom: Error: modules.f90, line 1: Unrecognized token '#' skipped
C ############ Maximal sizes ####################################
---^
I opened the modules.f90 and found the following:
C ############ Maximal sizes ####################################
Module razmer
Parameter (n1x=50, n1y=20, N11=n1x*n1y, M11=2*N11)
Parameter (n0=Max(n1x,n1y), nn=n0*n0, mm=n0+4)
End Module razmer
!LAB
module DynamParamM
Type DynamParamT
real(8) :: GrStrt, GrEnd, GrMul, Eps
integer :: Nsig, ItMax
End Type DynamParamT
type(DynamParamT) DynamParam
end module DynamParamM
!LAB
C *********** Parameters of the problem ***********
It looks like (to me) it is not a fortran language at all. (sorry, I learned fortran77 more than 10 years ago and never used it ever since). Did I need to set something or should I downgrade it to fc7.x as implied in a previous posting?
Can anyone help out?
Thanks!
I am trying to compile a fortran program, galgel, in spec2000. While there is no problem for other benchmarks, I cannot compile galgel with fc9.0. The error message is as following:
ifort -c -o modules.o -O3 -fomit-frame-pointer modules.f90
fortcom: Error: modules.f90, line 1: Unrecognized token '#' skipped
C ############ Maximal sizes ####################################
--^
fortcom: Error: modules.f90, line 1: Unrecognized token '#' skipped
C ############ Maximal sizes ####################################
---^
I opened the modules.f90 and found the following:
C ############ Maximal sizes ####################################
Module razmer
Parameter (n1x=50, n1y=20, N11=n1x*n1y, M11=2*N11)
Parameter (n0=Max(n1x,n1y), nn=n0*n0, mm=n0+4)
End Module razmer
!LAB
module DynamParamM
Type DynamParamT
real(8) :: GrStrt, GrEnd, GrMul, Eps
integer :: Nsig, ItMax
End Type DynamParamT
type(DynamParamT) DynamParam
end module DynamParamM
!LAB
C *********** Parameters of the problem ***********
It looks like (to me) it is not a fortran language at all. (sorry, I learned fortran77 more than 10 years ago and never used it ever since). Did I need to set something or should I downgrade it to fc7.x as implied in a previous posting?
Can anyone help out?
Thanks!
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I assume that in the original source file that there are leading blanks before many of the statements.
This is fixed-form source. If you rename the .f90 to .f it should compile ok. Or you can add -fixed when compiling.
This is fixed-form source. If you rename the .f90 to .f it should compile ok. Or you can add -fixed when compiling.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, it is fixed by adding -fixed:)
thanks steve.
thanks steve.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page