Skip to content
Snippets Groups Projects
Commit 4cfd1ac9 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

re-enable dynamic libgmp

parent 392f1d21
No related branches found
No related tags found
No related merge requests found
......@@ -450,7 +450,7 @@ if(ENABLE_KBIPACK)
add_subdirectory(contrib/kbipack)
include_directories(contrib/kbipack)
set_config_option(HAVE_KBIPACK "Kbipack")
find_library(GMP_LIB NAMES libgmp.a libgmp.dll.a)
find_library(GMP_LIB NAMES libgmp)
if(GMP_LIB)
set_config_option(HAVE_GMP "GMP")
list(APPEND EXTERNAL_LIBRARIES ${GMP_LIB})
......
......@@ -97,14 +97,10 @@ static double F_Lc(GEdge *ge, double t)
lc_here = BGM_MeshSize(ge, t, 0, p.x(), p.y(), p.z());
SVector3 der = ge->firstDer(t);
const double d = norm(der);
SMetric3 metric (1./(lc_here*lc_here));
// metric(0,0) = metric(0,0)*10000;
double lSquared = dot (der,metric,der);
//const double d = norm(der);
//return d / lc_here;
SMetric3 metric(1. / (lc_here * lc_here));
double lSquared = dot(der, metric, der);
return sqrt(lSquared);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment