Damask improvements (#28178)
This commit is contained in:
parent
897616f073
commit
2bb844ee0e
@ -7,8 +7,8 @@
|
||||
class DamaskGrid(CMakePackage):
|
||||
"""Grid solver for DAMASK"""
|
||||
|
||||
homepage = "https://damask3.mpie.de"
|
||||
url = "https://damask3.mpie.de/download/damask-3.0.0.tar.xz"
|
||||
homepage = "https://damask.mpie.de"
|
||||
url = "https://damask.mpie.de/download/damask-3.0.0.tar.xz"
|
||||
|
||||
maintainers = ['MarDiehl']
|
||||
|
||||
@ -17,9 +17,10 @@ class DamaskGrid(CMakePackage):
|
||||
|
||||
depends_on('pkgconfig', type='build')
|
||||
depends_on('cmake@3.10:', type='build')
|
||||
depends_on('petsc+mpi+hdf5')
|
||||
depends_on('petsc@3.14.0:3.14,3.15.1:3.15', when='@3.0.0-alpha4')
|
||||
depends_on('petsc@3.14.0:3.14,3.15.1:3.16', when='@3.0.0-alpha5')
|
||||
depends_on('hdf5+fortran')
|
||||
depends_on('hdf5@1.10:+mpi+fortran')
|
||||
depends_on('fftw+mpi')
|
||||
|
||||
patch('CMakeDebugRelease.patch', when='@3.0.0-alpha4')
|
||||
@ -29,12 +30,11 @@ class DamaskGrid(CMakePackage):
|
||||
values=('Debug', 'Release', 'DebugRelease'))
|
||||
|
||||
def patch(self):
|
||||
filter_file(' -lhdf5 ', ' -lhdf5_fortran -lhdf5 ', 'CMakeLists.txt')
|
||||
filter_file(' -lz ', ' -lz -lfftw3 -lfftw3_mpi ', 'CMakeLists.txt')
|
||||
filter_file(' -lz ', ' -lz ${FFTW_LIBS} ', 'CMakeLists.txt')
|
||||
|
||||
def cmake_args(self):
|
||||
args = ['-DDAMASK_SOLVER:STRING=grid']
|
||||
return args
|
||||
return [self.define('DAMASK_SOLVER', 'grid'),
|
||||
self.define('FFTW_LIBS', self.spec['fftw:mpi'].libs.link_flags)]
|
||||
|
||||
@run_after('install')
|
||||
@on_package_attributes(run_tests=True)
|
||||
|
@ -7,8 +7,8 @@
|
||||
class DamaskMesh(CMakePackage):
|
||||
"""Mesh solver for DAMASK"""
|
||||
|
||||
homepage = "https://damask3.mpie.de"
|
||||
url = "https://damask3.mpie.de/download/damask-3.0.0.tar.xz"
|
||||
homepage = "https://damask.mpie.de"
|
||||
url = "https://damask.mpie.de/download/damask-3.0.0.tar.xz"
|
||||
|
||||
maintainers = ['MarDiehl']
|
||||
|
||||
@ -17,9 +17,10 @@ class DamaskMesh(CMakePackage):
|
||||
|
||||
depends_on('pkgconfig', type='build')
|
||||
depends_on('cmake@3.10:', type='build')
|
||||
depends_on('petsc+mpi+hdf5')
|
||||
depends_on('petsc@3.14.0:3.14,3.15.1:3.15', when='@3.0.0-alpha4')
|
||||
depends_on('petsc@3.14.0:3.14,3.15.1:3.16', when='@3.0.0-alpha5')
|
||||
depends_on('hdf5+fortran')
|
||||
depends_on('hdf5@1.10:+mpi+fortran')
|
||||
|
||||
patch('CMakeDebugRelease.patch', when='@3.0.0-alpha4')
|
||||
|
||||
@ -27,12 +28,8 @@ class DamaskMesh(CMakePackage):
|
||||
description='The build type to build',
|
||||
values=('Debug', 'Release', 'DebugRelease'))
|
||||
|
||||
def patch(self):
|
||||
filter_file(' -lhdf5 ', ' -lhdf5_fortran -lhdf5 ', 'CMakeLists.txt')
|
||||
|
||||
def cmake_args(self):
|
||||
args = ['-DDAMASK_SOLVER:STRING=mesh']
|
||||
return args
|
||||
return [self.define('DAMASK_SOLVER', 'mesh')]
|
||||
|
||||
@run_after('install')
|
||||
@on_package_attributes(run_tests=True)
|
||||
|
@ -21,7 +21,7 @@ class Damask(BundlePackage):
|
||||
|
||||
"""
|
||||
|
||||
homepage = "https://damask3.mpie.de"
|
||||
homepage = "https://damask.mpie.de"
|
||||
|
||||
maintainers = ['MarDiehl']
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
class PyDamask(PythonPackage):
|
||||
"""Pre- and post-processing tools for DAMASK"""
|
||||
|
||||
homepage = "https://damask3.mpie.de"
|
||||
url = "https://damask3.mpie.de/download/damask-3.0.0.tar.xz"
|
||||
homepage = "https://damask.mpie.de"
|
||||
url = "https://damask.mpie.de/download/damask-3.0.0.tar.xz"
|
||||
|
||||
maintainers = ['MarDiehl']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user