Skip to content
Snippets Groups Projects
Commit 471f1bf3 authored by Matti Pellika's avatar Matti Pellika
Browse files

Link libgmp statically?
parent 8df370e0
No related branches found
No related tags found
No related merge requests found
...@@ -423,7 +423,7 @@ if(ENABLE_GMM) ...@@ -423,7 +423,7 @@ if(ENABLE_GMM)
endif(ENABLE_GMM) endif(ENABLE_GMM)
if(ENABLE_KBIPACK) if(ENABLE_KBIPACK)
find_library(GMP_LIB gmp) find_library(GMP_LIB libgmp.a)
if(GMP_LIB) if(GMP_LIB)
add_subdirectory(contrib/kbipack) add_subdirectory(contrib/kbipack)
set(HAVE_KBIPACK TRUE) set(HAVE_KBIPACK TRUE)
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
#include "Homology.h" #include "Homology.h"
#include "ChainComplex.h" #include "ChainComplex.h"
#include "OS.h" #include "OS.h"
#include "PView.h"
#include "PViewDataGModel.h"
#if defined(HAVE_KBIPACK) #if defined(HAVE_KBIPACK)
Homology::Homology(GModel* model, std::vector<int> physicalDomain, std::vector<int> physicalSubdomain){ Homology::Homology(GModel* model, std::vector<int> physicalDomain, std::vector<int> physicalSubdomain){
...@@ -91,7 +93,7 @@ void Homology::findGenerators(std::string fileName){ ...@@ -91,7 +93,7 @@ void Homology::findGenerators(std::string fileName){
_cellComplex->reduction(1); _cellComplex->reduction(1);
_cellComplex->combine(1); _cellComplex->combine(1);
_cellComplex->checkCoherence(); _cellComplex->checkCoherence();
//_cellComplex->printEuler(); //_cellComplex->printEuler();
//_cellComplex->emptyTrash(); //_cellComplex->emptyTrash();
...@@ -183,7 +185,7 @@ void Homology::findGenerators(std::string fileName){ ...@@ -183,7 +185,7 @@ void Homology::findGenerators(std::string fileName){
printf("H1 = %d \n", HRank[1]); printf("H1 = %d \n", HRank[1]);
printf("H2 = %d \n", HRank[2]); printf("H2 = %d \n", HRank[2]);
printf("H3 = %d \n", HRank[3]); printf("H3 = %d \n", HRank[3]);
return; return;
} }
...@@ -293,7 +295,7 @@ void Homology::findDualGenerators(std::string fileName){ ...@@ -293,7 +295,7 @@ void Homology::findDualGenerators(std::string fileName){
printf("H1* = %d \n", HRank[1]); printf("H1* = %d \n", HRank[1]);
printf("H2* = %d \n", HRank[2]); printf("H2* = %d \n", HRank[2]);
printf("H3* = %d \n", HRank[3]); printf("H3* = %d \n", HRank[3]);
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment