Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

fc9.0 and galgel in SPEC2000

navyant
Beginner
619 Views
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!
0 Kudos
2 Replies
Steven_L_Intel1
Employee
619 Views
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.
0 Kudos
navyant
Beginner
619 Views
Yes, it is fixed by adding -fixed:)
thanks steve.
0 Kudos
Reply