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

Problem with compile makefile

hamid_mosaddeghi
Beginner
931 Views
Dear Friends

I need to compile sq.f90, but this code is MPI,then for this purpose I define MPIFC in makefile but after run

I get this error:

[hamid@localhost Sq]$ make

mpif90 -c -O2 -ffast-math -o sq sq.f90 dlprw.o utility.o parse.o

sq.f90:191.96:

) "Error - mapping original type ",origtype(n)," to new type ", newtype(n)," us

1

Error: Unterminated character constant beginning at (1)

sq.f90:191.132:

rigtype(n)," to new type ", newtype(n)," uses a different isotope than one

1

Warning: Line truncated at (1)

sq.f90:314.55:

write(12,"(i2,2x,a6,1x,f7.0,3x,f7.4,2x,a6,2x,f7.4)") (n,uniquetypes(n),typepops

1

Error: Expected PARAMETER symbol in complex constant at (1)

sq.f90:314.132:

niquetypes(n),typepops(n),typepops(n)/natms,isonames(uniqueiso(n)),isoscatt

1

Warning: Line truncated at (1)

sq.f90:648.132:

5)*binwidth, partialsq(alpha,beta,n), m2n(alpha,beta,n), totaladded(n), par

1

Warning: Line truncated at (1)

sq.f90:648.132:

5)*binwidth, partialsq(alpha,beta,n), m2n(alpha,beta,n), totaladded(n), par

1

Error: Symbol 'par' at (1) has no IMPLICIT type

sq.f90:176.10:

success = readline(15)

1

Warning: Extension: Conversion from LOGICAL(4) to INTEGER(4) at (1)

make: *** [sq] Error 1

-------------------------
but some friendssaidto me that I need to define -ffree in flags but I geterrors:

don't recognized -ffree

Please attach file and help to me for compilation

Thanks
0 Kudos
3 Replies
mecej4
Honored Contributor III
931 Views
Heed the error messages. Some compilers will not accept source code lines longer than 132 characters.

You are using a non-Intel compiler, so this thread is a little out of place here.
0 Kudos
hamid_mosaddeghi
Beginner
931 Views
Ok, if Possible for set it for comilpe with a intel compiler

thanks.
0 Kudos
TimP
Honored Contributor III
931 Views
If you wish your mpif90 (from an open source MPI) to refer to ifort, you must build a copy of your MPI appropriately configured according to its instructions, and put that MPI first on your path.
Intel MPI has mpif90 built with gfortran, while mpiifort is the ifort equivalent.
0 Kudos
Reply