added support -DLAMMPS_XDR and -DPACK_*

This commit is contained in:
Christoph Junghans 2017-07-17 13:21:42 -06:00
parent 08c920029f
commit a3885b78ad
1 changed files with 10 additions and 0 deletions

View File

@ -115,6 +115,16 @@ if(ENABLE_KSPACE)
include_directories(${FFTW3_INCLUDE_DIRS})
list(APPEND LAMMPS_LINK_LIBS ${FFTW3_LIBRARIES})
endif()
set(PACK_OPTIMIZATION "PACK_ARRAY" CACHE STRING "Optimization for FFT")
set_property(CACHE LAMMPS_SIZE_LIMIT PROPERTY STRINGS PACK_ARRAY PACK_POINTER PACK_MEMCPY)
add_definitions(-D${PACK_OPTIMIZATION})
endif()
if(ENABLE_MISC)
option(LAMMPS_XDR "include XDR compatibility files for doing particle dumps in XTC format" OFF)
if(LAMMPS_XDR)
add_definitions(-DLAMMPS_XDR)
endif()
endif()
if(ENABLE_KOKKOS)