X-Git-Url: http://git.treefish.org/~alex/phys/heatbath.git/blobdiff_plain/d017fdeec8363b3e871692219bb7eacb614a41f1..2b9b5b0349d4bc4509d936b9f0de3a021fdcec40:/CMakeLists.txt?ds=sidebyside diff --git a/CMakeLists.txt b/CMakeLists.txt index c90e8c9..4466417 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,18 +7,39 @@ project(heatbath) # set(CMAKE_EXE_LINKER_FLAGS -pg) # set(CMAKE_SHARED_LINKER_FLAGS -pg) +find_package(MPI REQUIRED) +#set(CMAKE_CXX_COMPILE_FLAGS ${CMAKE_CXX_COMPILE_FLAGS} ${MPI_COMPILE_FLAGS}) +#set(CMAKE_CXX_LINK_FLAGS ${CMAKE_CXX_LINK_FLAGS} ${MPI_LINK_FLAGS}) +include_directories(${MPI_INCLUDE_PATH}) + SET(CMAKE_BUILD_TYPE Release) add_subdirectory(latlib) -add_executable(heatbath-heatless heatbath.cpp) -set_target_properties(heatbath-heatless PROPERTIES COMPILE_DEFINITIONS "HEATLESS_ALGORITHM") -target_link_libraries(heatbath-heatless o815 gsl gslcblas lat_neigh) +add_executable(heatbath-nor heatbath.cpp) +set_target_properties(heatbath-nor PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_NOR") +target_link_libraries(heatbath-nor o815 gsl gslcblas lat_neigh) + +add_executable(heatbath-r heatbath.cpp) +set_target_properties(heatbath-r PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_R") +target_link_libraries(heatbath-r o815 gsl gslcblas lat_neigh) + +add_executable(heatbath-1mr heatbath.cpp) +set_target_properties(heatbath-1mr PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_1MR") +target_link_libraries(heatbath-1mr o815 gsl gslcblas lat_neigh) + +add_executable(heatbath-1mr+ heatbath.cpp) +set_target_properties(heatbath-1mr+ PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_1MRPLUS") +target_link_libraries(heatbath-1mr+ o815 gsl gslcblas lat_neigh) + +add_executable(heatbath-1mr- heatbath.cpp) +set_target_properties(heatbath-1mr- PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_1MRMINUS") +target_link_libraries(heatbath-1mr- o815 gsl gslcblas lat_neigh) -add_executable(heatbath-usualheat heatbath.cpp) -set_target_properties(heatbath-usualheat PROPERTIES COMPILE_DEFINITIONS "USUALHEAT_ALGORITHM") -target_link_libraries(heatbath-usualheat o815 gsl gslcblas lat_neigh) +add_executable(heatbath-r- heatbath.cpp) +set_target_properties(heatbath-r- PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_RMINUS") +target_link_libraries(heatbath-r- o815 gsl gslcblas lat_neigh) -add_executable(heatbath-relaxedheat heatbath.cpp) -set_target_properties(heatbath-relaxedheat PROPERTIES COMPILE_DEFINITIONS "RELAXEDHEAT_ALGORITHM") -target_link_libraries(heatbath-relaxedheat o815 gsl gslcblas lat_neigh) +add_executable(heatbath-r+ heatbath.cpp) +set_target_properties(heatbath-r+ PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_RPLUS") +target_link_libraries(heatbath-r+ o815 gsl gslcblas lat_neigh)