Hi
I have been trying to compile CAMB_sources with gfortran. I'm using gfortran 4.4 in the server. Without further changes from the original final except in the makefile I get several errors in compiling equations.f90. I tried the following FFLAGS:
FFLAGS = -O2
FFLAGS = -O3 -fopenmp -ffast-math -funroll-loops
FFLAGS = -Ofast -march=native -fopenmp
All give me the same errors and warnings. I copy some examples:
equations.f90:1711.132:
og10Ndm)*((-4.D0*W%wing2(j)/chi*adotoa-2.D0*(-W%dwing2(j)*chi-W%wing2(j))/c
1
Error: Expected a right parenthesis in expression at (1)
equations.f90:1711.132:
og10Ndm)*((-4.D0*W%wing2(j)/chi*adotoa-2.D0*(-W%dwing2(j)*chi-W%wing2(j))/c
1
Warning: Line truncated at (1)
equations.f90:1712.24:
k*sigma+2.D0*W%wing2(j)*etak/chi/k/EV%Kf(1))
1
Error: Unclassifiable statement at (1)
Using the previous version of CAMB_sources I am able to run the code. Any hints on whats going on?
Zé
CAMB_sources: compiling issues with gfortran
-
- Posts: 6
- Joined: June 04 2014
- Affiliation: University of the Western Cape
-
- Posts: 1943
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: CAMB_sources: compiling issues with gfortran
Looks like the compiler is truncating lines, try compiler options like
-ffree-line-length-132
(or you may need gfortran 4.7+)
-ffree-line-length-132
(or you may need gfortran 4.7+)
-
- Posts: 6
- Joined: June 04 2014
- Affiliation: University of the Western Cape
CAMB_sources: compiling issues with gfortran
I got the following error for the command line:
error: unrecognized command line option "-ffree-line-length−132"
I'll try to upgrade the compiler.
error: unrecognized command line option "-ffree-line-length−132"
I'll try to upgrade the compiler.