Commit 64c820a2 authored by Gerald Klinkl's avatar Gerald Klinkl

Fix "relocation truncated to fit:" errors

Fix "relocation truncated to fit:" errors when compiling flexpart with
gfortran and medium memory model
parent 80833471
......@@ -437,11 +437,11 @@ CONTAINS
& TRIM(PREPROC_FORMAT_VERSION_STR)) THEN
CONTINUE
ELSE
PRINT *, ''
! PRINT *, '' GK: causes relocation truncated to fit: R_X86_64_32
PRINT *, 'Inconsistent preprocessing format version'
PRINT *, 'Expected Version: ', PREPROC_FORMAT_VERSION_STR
PRINT *, 'Detected Version: ', temp_preproc_format_version_str
PRINT *, ''
! PRINT *, ''
STOP
END IF
......@@ -460,14 +460,14 @@ CONTAINS
CONTINUE
ELSE
PRINT *, 'Incompatible dimensions between fp file and current FLEXPART!'
PRINT *, ''
! PRINT *, ''
PRINT *, ' FP file Compiled FP'
PRINT *, 'nxmax: ', temp_nxmax, ' ', nxmax
PRINT *, 'nymax: ', temp_nymax, ' ', nymax
PRINT *, 'nzmax: ', temp_nzmax, ' ', nzmax
PRINT *, 'nuvzmax: ', temp_nuvzmax, ' ', nuvzmax
PRINT *, 'nwzmax: ', temp_nwzmax, ' ', nwzmax
PRINT *, ''
! PRINT *, ''
STOP
END IF
......
......@@ -22,7 +22,7 @@ LIBPATH2 = /usr/lib/x86_64-linux-gnu
#LIBPATH1 = /opt/grib-api/lib
#LIBPATH2 = /usr/lib/x86_64-linux-gnu
FFLAGS = -O2 -m64 -mcmodel=large -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
FFLAGS = -O2 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
LDFLAGS = $(FFLAGS) -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment