Skip to content
Snippets Groups Projects
Commit 9528c867 authored by Innocent Niyonzima's avatar Innocent Niyonzima
Browse files

fix compile w/o mesh

parent 7704e57e
Branches
Tags
No related merge requests found
...@@ -1421,6 +1421,9 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") ...@@ -1421,6 +1421,9 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
list(APPEND LINK_LIBRARIES ${RT_LIB}) list(APPEND LINK_LIBRARIES ${RT_LIB})
endif(RT_LIB) endif(RT_LIB)
endif(HAVE_OCC) endif(HAVE_OCC)
if(CMAKE_C_COMPILER_ID MATCHES "GNU")
add_definitions(-fPIC)
endif(CMAKE_C_COMPILER_ID MATCHES "GNU")
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
# we could specify include dirs more selectively, but this is simpler # we could specify include dirs more selectively, but this is simpler
......
...@@ -236,7 +236,11 @@ double MElement::maxDistToStraight() const ...@@ -236,7 +236,11 @@ double MElement::maxDistToStraight() const
double MElement::minAnisotropyMeasure() double MElement::minAnisotropyMeasure()
{ {
#if defined(HAVE_MESH)
return jacobianBasedQuality::minAnisotropyMeasure(this); return jacobianBasedQuality::minAnisotropyMeasure(this);
#else
return 0.;
#endif
} }
void MElement::scaledJacRange(double &jmin, double &jmax, GEntity *ge) const void MElement::scaledJacRange(double &jmin, double &jmax, GEntity *ge) const
......
...@@ -716,8 +716,10 @@ bool MetricBasis::validateBezierForMetricAndJacobian() ...@@ -716,8 +716,10 @@ bool MetricBasis::validateBezierForMetricAndJacobian()
elements[iel] = el; elements[iel] = el;
} }
#if defined(HAVE_PLUGINS)
GMSH_AnalyseCurvedMeshPlugin plugin = GMSH_AnalyseCurvedMeshPlugin(); GMSH_AnalyseCurvedMeshPlugin plugin = GMSH_AnalyseCurvedMeshPlugin();
plugin.test(elements, numElem, dim); plugin.test(elements, numElem, dim);
#endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment