We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edf8533 commit ca6b07eCopy full SHA for ca6b07e
CMakeLists.txt
@@ -35,7 +35,6 @@ if(SERIAL)
35
message(STATUS "Configuring build for serial execution")
36
else()
37
message(STATUS "Configuring build for parallel execution")
38
- add_definitions(-DCAF)
39
endif()
40
41
# compiler flags for gfortran
@@ -60,6 +59,11 @@ endif()
60
59
# compiler flags for ifort
61
if(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
62
+ if(SERIAL)
63
+ message(STATUS "Configuring to build with -coarray=single")
64
+ set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -coarray=single")
65
+ endif()
66
+
67
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fpp -assume byterecl,realloc_lhs -heap-arrays")
68
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -C -traceback")
69
set(CMAKE_Fortran_FLAGS_RELEASE "-O3")
0 commit comments