Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
science
sympol
unbundle.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File unbundle.diff of Package sympol
Unbundle cddlib, lrslib and permlib, and adjust code for new boost 1.69, lrslib-0.7.0. --- CMakeLists.txt | 6 ++---- sympol/CMakeLists.txt | 6 +++--- sympol/raycomputationlrs.cpp | 3 --- sympol/symmetrygroupconstruction/graphconstructionbliss.cpp | 1 + sympol/sympol.cpp | 2 +- 5 files changed, 7 insertions(+), 11 deletions(-) Index: SymPol-0.1.9/CMakeLists.txt =================================================================== --- SymPol-0.1.9.orig/CMakeLists.txt +++ SymPol-0.1.9/CMakeLists.txt @@ -15,15 +15,13 @@ IF( NOT CMAKE_BUILD_TYPE ) ENDIF( NOT CMAKE_BUILD_TYPE ) add_definitions(-Wall) -set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -O3 -g -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG") -set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG") +set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -g -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -DGMP") +set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -DGMP") enable_testing() add_test(NAME perltest WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/contrib COMMAND perl test-sympol.pl ${PROJECT_BINARY_DIR}) add_subdirectory(sympol) -add_subdirectory(external/lrslib-042c) -add_subdirectory(external/cddlib-094f) add_subdirectory(test) exec_program( ${CMAKE_COMMAND} ARGS -E copy_directory ${PROJECT_SOURCE_DIR}/data ${PROJECT_BINARY_DIR}/data ) Index: SymPol-0.1.9/sympol/CMakeLists.txt =================================================================== --- SymPol-0.1.9.orig/sympol/CMakeLists.txt +++ SymPol-0.1.9/sympol/CMakeLists.txt @@ -38,10 +38,10 @@ SET (Boost_USE_MULTITHREADED TRUE) find_package(Boost 1.34.1 COMPONENTS program_options REQUIRED) include_directories(${Boost_INCLUDE_DIRS}) -include_directories(../external/boost ../external/permlib ../external/lrslib-042c ../external/cddlib-094f ${CMAKE_CURRENT_BINARY_DIR}) +include_directories(../external/boost /usr/include/lrslib /usr/include/cdd ${CMAKE_CURRENT_BINARY_DIR}) add_definitions(-Woverloaded-virtual) # lrs flags -add_definitions(-DGMP -DLRS_QUIET) +add_definitions(-DGMP -DMA -DLRS_QUIET) # cdd flags add_definitions(-DGMPRATIONAL) @@ -73,7 +73,7 @@ set_target_properties(sympol PROPERTIES add_executable(sympolbin sympol.cpp) set_target_properties(sympolbin PROPERTIES OUTPUT_NAME sympol) -set(TARGET_LIBS ${TARGET_LIBS} lrsgmp cddgmp ${GMP_LIBRARIES} ${Boost_LIBRARIES}) +set(TARGET_LIBS ${TARGET_LIBS} lrs cddgmp ${GMP_LIBRARIES} ${Boost_LIBRARIES}) target_link_libraries(sympol ${TARGET_LIBS}) target_link_libraries(sympolbin sympol) Index: SymPol-0.1.9/sympol/raycomputationlrs.cpp =================================================================== --- SymPol-0.1.9.orig/sympol/raycomputationlrs.cpp +++ SymPol-0.1.9/sympol/raycomputationlrs.cpp @@ -65,9 +65,6 @@ bool RayComputationLRS::finish() { if (!RayComputationLRS::ms_bInitialized) { return true; } - - lrs_mp_close(); - if (RayComputationLRS::ms_fIn != NULL) { if (std::fclose(RayComputationLRS::ms_fIn)) { return false; Index: SymPol-0.1.9/sympol/symmetrygroupconstruction/graphconstructionbliss.cpp =================================================================== --- SymPol-0.1.9.orig/sympol/symmetrygroupconstruction/graphconstructionbliss.cpp +++ SymPol-0.1.9/sympol/symmetrygroupconstruction/graphconstructionbliss.cpp @@ -7,6 +7,7 @@ #if HAVE_BLISS +#include <cmath> // std::ceil, log2 #include <bliss/graph.hh> using namespace sympol; Index: SymPol-0.1.9/sympol/sympol.cpp =================================================================== --- SymPol-0.1.9.orig/sympol/sympol.cpp +++ SymPol-0.1.9/sympol/sympol.cpp @@ -89,7 +89,7 @@ uint correct_id(uint id, uint apexIndex) int main(int argc, char* argv[]) { - std::cout << "SymPol " << SYMPOL_VERSION << " and PermLib " << PERMLIB_VERSION << " with lrs 4.2c and cddlib 0.94f"; + std::cout << "SymPol " << SYMPOL_VERSION << " and PermLib " << PERMLIB_VERSION << " with lrs and cddlib"; #if HAVE_BLISS std::cout << " and bliss"; #endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor