Skip to content

Commit

Permalink
Merge branch 'master' into spackpack
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeidler3 committed Jan 30, 2024
2 parents 2011991 + 39a2940 commit ccd9337
Show file tree
Hide file tree
Showing 39 changed files with 16,602 additions and 26,643 deletions.
1 change: 0 additions & 1 deletion .github/workflows/machine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
strategy:
matrix:
os_env:
- macos-latest
- ubuntu-latest

build_type:
Expand Down
18 changes: 13 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 2.8.8)
cmake_minimum_required (VERSION 3.5)

project (korc_proj C CXX Fortran)

Expand All @@ -14,14 +14,22 @@ set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build/lib)
add_definitions (-DDOUBLE_PRECISION)
add_definitions (-DPARALLEL_RANDOM)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions (-DDBG_CHECK)
# add_definitions (-DDBG_CHECK)
endif()


# Configure OpenMP
find_package (OpenMP)
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${OpenMP_Fortran_FLAGS}")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_Fortran_FLAGS}")
option (USE_OMP "Use OpenOMP" OFF)
if (${USE_OMP})
add_definitions (-DOMP)
endif()

option (USE_ACC "Use OpenACC" OFF)
if (${USE_ACC})
add_definitions (-DACC)
endif()

# Configure MPI
find_package (MPI REQUIRED)
Expand All @@ -36,8 +44,8 @@ include_directories (${HDF5_INCLUDE_DIRS})
# Configure EZspline
option (USE_PSPLINE "Use PSPLINE interpolation" OFF)
if (${USE_PSPLINE})
include_directories (${EZSpline_INCLUDE_PATH})
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EZSpline_LINK_FLAGS}")
#include_directories (${EZSpline_INCLUDE_PATH})
#set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EZSpline_LINK_FLAGS}")
add_definitions (-DPSPLINE)
endif ()

Expand Down
Loading

0 comments on commit ccd9337

Please sign in to comment.