From 72fc613f22dcf7892448117b6451abe999f41728 Mon Sep 17 00:00:00 2001 From: Tobias Reiter Date: Mon, 17 Jun 2024 09:37:54 +0200 Subject: [PATCH] Fix shared library build --- include/viennals/lsGeometricAdvect.hpp | 2 +- lib/specialisations.cpp | 64 ++++++++++++++------------ 2 files changed, 35 insertions(+), 31 deletions(-) diff --git a/include/viennals/lsGeometricAdvect.hpp b/include/viennals/lsGeometricAdvect.hpp index 59685425..fce371bd 100644 --- a/include/viennals/lsGeometricAdvect.hpp +++ b/include/viennals/lsGeometricAdvect.hpp @@ -469,7 +469,7 @@ template class GeometricAdvect { } } } // domainBounds for - } // parallel region + } // parallel region // copy all points into the first vector { diff --git a/lib/specialisations.cpp b/lib/specialisations.cpp index 8ce7a127..a8b1badd 100644 --- a/lib/specialisations.cpp +++ b/lib/specialisations.cpp @@ -27,35 +27,39 @@ #include #include +namespace viennals { + // now call the specialize macro to precompile them -PRECOMPILE_SPECIALIZE_PRECISION(lsPointData) -PRECOMPILE_SPECIALIZE_PRECISION(lsMesh) -PRECOMPILE_SPECIALIZE(lsAdvect) -PRECOMPILE_SPECIALIZE(lsBooleanOperation) -PRECOMPILE_SPECIALIZE(lsCalculateCurvatures) -PRECOMPILE_SPECIALIZE(lsCalculateNormalVectors) -PRECOMPILE_SPECIALIZE(lsCheck) -PRECOMPILE_SPECIALIZE(lsConvexHull) -PRECOMPILE_SPECIALIZE(lsDomain) -PRECOMPILE_SPECIALIZE(lsExpand) -PRECOMPILE_SPECIALIZE(lsGeometricAdvect) -PRECOMPILE_SPECIALIZE(lsDetectFeatures) -PRECOMPILE_SPECIALIZE(lsFromMesh) -PRECOMPILE_SPECIALIZE(lsFromSurfaceMesh) -PRECOMPILE_SPECIALIZE(lsFromVolumeMesh) -PRECOMPILE_SPECIALIZE(lsSphere) -PRECOMPILE_SPECIALIZE(lsPlane) -PRECOMPILE_SPECIALIZE(lsBox) -PRECOMPILE_SPECIALIZE(lsPointCloud) -PRECOMPILE_SPECIALIZE(lsMakeGeometry) -PRECOMPILE_SPECIALIZE(lsPrune) -PRECOMPILE_SPECIALIZE(lsReader) -PRECOMPILE_SPECIALIZE(lsReduce) -PRECOMPILE_SPECIALIZE(lsToDiskMesh) -PRECOMPILE_SPECIALIZE(lsToMesh) -PRECOMPILE_SPECIALIZE(lsToSurfaceMesh) -PRECOMPILE_SPECIALIZE(lsToVoxelMesh) -PRECOMPILE_SPECIALIZE(lsWriter) +PRECOMPILE_SPECIALIZE_PRECISION(PointData) +PRECOMPILE_SPECIALIZE_PRECISION(Mesh) +PRECOMPILE_SPECIALIZE(Advect) +PRECOMPILE_SPECIALIZE(BooleanOperation) +PRECOMPILE_SPECIALIZE(CalculateCurvatures) +PRECOMPILE_SPECIALIZE(CalculateNormalVectors) +PRECOMPILE_SPECIALIZE(Check) +PRECOMPILE_SPECIALIZE(ConvexHull) +PRECOMPILE_SPECIALIZE(Domain) +PRECOMPILE_SPECIALIZE(Expand) +PRECOMPILE_SPECIALIZE(GeometricAdvect) +PRECOMPILE_SPECIALIZE(DetectFeatures) +PRECOMPILE_SPECIALIZE(FromMesh) +PRECOMPILE_SPECIALIZE(FromSurfaceMesh) +PRECOMPILE_SPECIALIZE(FromVolumeMesh) +PRECOMPILE_SPECIALIZE(Sphere) +PRECOMPILE_SPECIALIZE(Plane) +PRECOMPILE_SPECIALIZE(Box) +PRECOMPILE_SPECIALIZE(PointCloud) +PRECOMPILE_SPECIALIZE(MakeGeometry) +PRECOMPILE_SPECIALIZE(Prune) +PRECOMPILE_SPECIALIZE(Reader) +PRECOMPILE_SPECIALIZE(Reduce) +PRECOMPILE_SPECIALIZE(ToDiskMesh) +PRECOMPILE_SPECIALIZE(ToMesh) +PRECOMPILE_SPECIALIZE(ToSurfaceMesh) +PRECOMPILE_SPECIALIZE(ToVoxelMesh) +PRECOMPILE_SPECIALIZE(Writer) #ifdef VIENNALS_USE_VTK -PRECOMPILE_SPECIALIZE(lsWriteVisualizationMesh) -#endif \ No newline at end of file +PRECOMPILE_SPECIALIZE(WriteVisualizationMesh) +#endif + +} // namespace viennals \ No newline at end of file