id summary reporter owner description type status priority milestone component version resolution keywords cc 186 Compile fails using gfortran due to error in erf.f90 hcpxvi "I have built Flexpart from source on a couple of Linux machines and I always get a compile error due to a problem in erf.f90. The error message is: gfortran -c -O2 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I/usr/lib64/gfortran/modules erf.f90 erf.f90:106.26: real, external :: gammln 1 Error: Return type mismatch of function 'gammln' at (1) (REAL(4)/REAL(8)) erf.f90:111.13: gln=gammln(a) 1 Warning: Type mismatch in argument 'xx' at (1); passed REAL(4) to REAL(8) The same error happens at line 140. The following patch allows Flexpart to compile although it may not be the best way of achieving this: aurora.hcp>diff baderf.f90 erf.f90 106c106 < real, external :: gammln --- > double precision, external :: gammln 111c111 < gln=gammln(a) --- > gln=gammln(DBLE(a)) 140c140 < real, external :: gammln --- > double precision, external :: gammln 145c145 < gln=gammln(a) --- > gln=gammln(DBLE(a)) The version of gfortran used does not appear to be important; the same thing happens with gfortran 4.8.5 on Scientific Linux 7 and with gfortran 6.3.0 on Debian 9.2. " Defect closed major FP other FLEXPART 9.0.2 duplicate compile fail