Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Removed -standard-semantics from the default flag list, because it is…
Browse files Browse the repository at this point in the history
… not compatible with the pre-built NetCDF Fortran library. Kept it in the containerized version.
  • Loading branch information
daminton committed Jun 6, 2023
1 parent 20865a6 commit b8be368
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
8 changes: 0 additions & 8 deletions cmake/Modules/SetFortranFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b8be368

Please sign in to comment.