diff --git a/Dockerfile b/Dockerfile index 0ac00b25d..d0f2dcb88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -132,6 +132,7 @@ ENV NETCDF_LIBRARY=${NETCDF_HOME} ENV FOR_COARRAY_NUM_IMAGES=1 ENV OMP_NUM_THREADS=1 ENV FC="${INTEL_DIR}/mpi/latest/bin/mpiifort" +ENV FFLAGS="-fPIC -standard-semantics" ENV LDFLAGS="-L/usr/local/lib -L/usr/lib/x86_64-linux-gnu -lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lsz -lz -lzstd -lbz2 -lcurl -lxml2" COPY ./cmake/ /swiftest/cmake/ COPY ./src/ /swiftest/src/ diff --git a/cmake/Modules/SetFortranFlags.cmake b/cmake/Modules/SetFortranFlags.cmake index 550738f13..d1edd9ae9 100644 --- a/cmake/Modules/SetFortranFlags.cmake +++ b/cmake/Modules/SetFortranFlags.cmake @@ -81,14 +81,6 @@ SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}" Fortran "-fsignaling-nans " # GNU ) - -# Determines whether the current Fortran Standard behavior of the compiler is fully implemented. -SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}" - Fortran "-standard-semantics" # Intel - "/standard-semantics" # Intel Windows - ) - - # Allows for lines longer than 80 characters without truncation SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}" Fortran "-ffree-line-length-none" # GNU (gfortran)