From aea49755c34ff13a6c8df090cbc68130a176a563 Mon Sep 17 00:00:00 2001 From: nicolas le goff <14815625+nicolaslg@users.noreply.github.com> Date: Mon, 24 Jun 2024 10:26:56 +0200 Subject: [PATCH] added tetgen (#28) --- dockerfiles/Dockerfile.cmake-cgcore | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/dockerfiles/Dockerfile.cmake-cgcore b/dockerfiles/Dockerfile.cmake-cgcore index 49a9333..2176054 100644 --- a/dockerfiles/Dockerfile.cmake-cgcore +++ b/dockerfiles/Dockerfile.cmake-cgcore @@ -10,7 +10,8 @@ LABEL description="LIHPC-CG cmake core image" \ version.mesquite="2.3.0" \ version.cgns="4.3.0" \ version.vtk="7.1.1" \ - version.occt="7.1.0" + version.occt="7.1.0" \ + version.tetgen="1.6.0" #========================================== # Do not use /dev as the HOME if you use containers in vscode # /dev is too small to store .vscode-server directory containing user preferences @@ -49,6 +50,20 @@ RUN PRJ=mesquite-2.3.0 &&\ make install &&\ cd ../.. #========================================== +RUN PRJ=tetgen1.6.0 &&\ + curl -L http://www.tetgen.org/1.5/src/tetgen1.6.0.tar.gz | tar xz --directory src &&\ + cd src/${PRJ} &&\ + make &&\ + make tetlib &&\ + mkdir ${INSTALL_DIR}/${PRJ} &&\ + mkdir ${INSTALL_DIR}/${PRJ}/include &&\ + cp tetgen.h ${INSTALL_DIR}/${PRJ}/include &&\ + mkdir ${INSTALL_DIR}/${PRJ}/lib &&\ + cp libtet.a ${INSTALL_DIR}/${PRJ}/lib &&\ + mkdir ${INSTALL_DIR}/${PRJ}/bin &&\ + cp tetgen ${INSTALL_DIR}/${PRJ}/bin &&\ + cd ../.. +#========================================== # -DHDF5_NEED_MPI=true works only if libhdf5-dev is not installed # but, in this case, lima does not compile RUN PRJ=CGNS-4.3.0 &&\ @@ -86,4 +101,3 @@ RUN PRJ=occt-V7_1_0 &&\ cmake -S src/${PRJ} -B build/${PRJ} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}/${PRJ} &&\ cmake --build build/${PRJ} --parallel 4 --target install #========================================== -