Skip to content
Snippets Groups Projects
Commit 81f699ec authored by bfovet's avatar bfovet Committed by Massimiliano Culpo
Browse files

Update GMSH to 4.2.2 with OpenMP variant (#10914)

parent f51bce56
Branches
No related tags found
No related merge requests found
...@@ -19,7 +19,8 @@ class Gmsh(CMakePackage): ...@@ -19,7 +19,8 @@ class Gmsh(CMakePackage):
homepage = 'http://gmsh.info' homepage = 'http://gmsh.info'
url = 'http://gmsh.info/src/gmsh-2.11.0-source.tgz' url = 'http://gmsh.info/src/gmsh-2.11.0-source.tgz'
version('4.0.0', sha256='fb0c8afa37425c6f4315ab3b3124e9e102fcf270a35198423a4002796f04155f') version('4.2.2', sha256='e9ee9f5c606bbec5f2adbb8c3d6023c4e2577f487fa4e4ecfcfc94a241cc8dcc')
version('4.0.0', 'fb0c8afa37425c6f4315ab3b3124e9e102fcf270a35198423a4002796f04155f')
version('3.0.6', '9700bcc440d7a6b16a49cbfcdcdc31db33efe60e1f5113774316b6fa4186987b') version('3.0.6', '9700bcc440d7a6b16a49cbfcdcdc31db33efe60e1f5113774316b6fa4186987b')
version('3.0.1', '830b5400d9f1aeca79c3745c5c9fdaa2900cdb2fa319b664a5d26f7e615c749f') version('3.0.1', '830b5400d9f1aeca79c3745c5c9fdaa2900cdb2fa319b664a5d26f7e615c749f')
version('2.16.0', 'e829eaf32ea02350a385202cc749341f2a3217c464719384b18f653edd028eea') version('2.16.0', 'e829eaf32ea02350a385202cc749341f2a3217c464719384b18f653edd028eea')
...@@ -29,6 +30,7 @@ class Gmsh(CMakePackage): ...@@ -29,6 +30,7 @@ class Gmsh(CMakePackage):
variant('shared', default=True, description='Enables the build of shared libraries') variant('shared', default=True, description='Enables the build of shared libraries')
variant('mpi', default=True, description='Builds MPI support for parser and solver') variant('mpi', default=True, description='Builds MPI support for parser and solver')
variant('openmp', default=False, description='Enable OpenMP support')
variant('fltk', default=False, description='Enables the build of the FLTK GUI') variant('fltk', default=False, description='Enables the build of the FLTK GUI')
variant('hdf5', default=False, description='Enables HDF5 support') variant('hdf5', default=False, description='Enables HDF5 support')
variant('compression', default=True, description='Enables IO compression through zlib') variant('compression', default=True, description='Enables IO compression through zlib')
...@@ -37,6 +39,7 @@ class Gmsh(CMakePackage): ...@@ -37,6 +39,7 @@ class Gmsh(CMakePackage):
variant('petsc', default=False, description='Build with PETSc') variant('petsc', default=False, description='Build with PETSc')
variant('slepc', default=False, description='Build with SLEPc (only when PETSc is enabled)') variant('slepc', default=False, description='Build with SLEPc (only when PETSc is enabled)')
variant('tetgen', default=False, description='Build with Tetgen') variant('tetgen', default=False, description='Build with Tetgen')
variant('metis', default=False, description='Build with Metis')
depends_on('blas') depends_on('blas')
depends_on('lapack') depends_on('lapack')
...@@ -53,6 +56,7 @@ class Gmsh(CMakePackage): ...@@ -53,6 +56,7 @@ class Gmsh(CMakePackage):
depends_on('slepc', when='+slepc+petsc') depends_on('slepc', when='+slepc+petsc')
depends_on('tetgen', when='+tetgen') depends_on('tetgen', when='+tetgen')
depends_on('zlib', when='+compression') depends_on('zlib', when='+compression')
depends_on('metis', when='+metis')
conflicts('+slepc', when='~petsc') conflicts('+slepc', when='~petsc')
...@@ -76,8 +80,12 @@ def cmake_args(self): ...@@ -76,8 +80,12 @@ def cmake_args(self):
'-DBLAS_LAPACK_LIBRARIES={0}'.format(blas_lapack.ld_flags)) '-DBLAS_LAPACK_LIBRARIES={0}'.format(blas_lapack.ld_flags))
# Gmsh does not have an option to compile against external metis. # Gmsh does not have an option to compile against external metis.
# Its own Metis, however, fails to build # Its own Metis, however, fails to build.
options.append('-DENABLE_METIS=OFF') # However, Metis is needed for the Hxt library.
if '+metis' in spec:
options.append('-DENABLE_METIS=ON')
else:
options.append('-DENABLE_METIS=OFF')
if '+fltk' in spec: if '+fltk' in spec:
options.append('-DENABLE_FLTK=ON') options.append('-DENABLE_FLTK=ON')
...@@ -122,6 +130,11 @@ def cmake_args(self): ...@@ -122,6 +130,11 @@ def cmake_args(self):
# Builds and installs static library # Builds and installs static library
options.append('-DENABLE_BUILD_LIB:BOOL=ON') options.append('-DENABLE_BUILD_LIB:BOOL=ON')
if '+openmp' in spec:
options.append('-DENABLE_OPENMP=ON')
else:
options.append('-DENABLE_OPENMP=OFF')
if '+mpi' in spec: if '+mpi' in spec:
options.append('-DENABLE_MPI:BOOL=ON') options.append('-DENABLE_MPI:BOOL=ON')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment