damask: fix build of alpha release (#38457)
This commit is contained in:
parent
8b13440038
commit
6a258c148f
3 changed files with 16 additions and 0 deletions
11
var/spack/repos/builtin/packages/damask-grid/T-init.patch
Normal file
11
var/spack/repos/builtin/packages/damask-grid/T-init.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- damask.orig/src/grid/grid_thermal_spectral.f90 2023-06-17 00:35:03.454061742 +0200
|
||||||
|
+++ damask/src/grid/grid_thermal_spectral.f90 2023-06-17 00:38:50.641104409 +0200
|
||||||
|
@@ -110,7 +110,7 @@
|
||||||
|
T_current = discretization_grid_getInitialCondition('T')
|
||||||
|
T_lastInc = T_current
|
||||||
|
T_stagInc = T_current
|
||||||
|
- dotT_lastInc = 0.0_pReal
|
||||||
|
+ dotT_lastInc = 0.0_pREAL * T_current
|
||||||
|
|
||||||
|
!--------------------------------------------------------------------------------------------------
|
||||||
|
! initialize solver specific parts of PETSc
|
|
@ -40,6 +40,9 @@ class DamaskGrid(CMakePackage):
|
||||||
depends_on("fftw+mpi")
|
depends_on("fftw+mpi")
|
||||||
depends_on("libfyaml", when="@3.0.0-alpha7:")
|
depends_on("libfyaml", when="@3.0.0-alpha7:")
|
||||||
|
|
||||||
|
# proper initialization of temperature to avoid segmentation fault. created by @MarDiehl
|
||||||
|
patch("T-init.patch", when="@3.0.0-alpha7")
|
||||||
|
# relax Fortran sourc limit to 132 char to enable PETSc macro expansion. created by @MarDiehl
|
||||||
patch("long-lines.patch", when="@3.0.0-alpha7")
|
patch("long-lines.patch", when="@3.0.0-alpha7")
|
||||||
patch("CMakeDebugRelease.patch", when="@3.0.0-alpha4")
|
patch("CMakeDebugRelease.patch", when="@3.0.0-alpha4")
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,8 @@ class DamaskMesh(CMakePackage):
|
||||||
depends_on("hdf5@1.10:+mpi+fortran")
|
depends_on("hdf5@1.10:+mpi+fortran")
|
||||||
depends_on("libfyaml", when="@3.0.0-alpha7:")
|
depends_on("libfyaml", when="@3.0.0-alpha7:")
|
||||||
|
|
||||||
|
# relax Fortran sourc limit to 132 char to enable PETSc macro expansion. created by @MarDiehl
|
||||||
|
patch("long-lines.patch", when="@3.0.0-alpha7")
|
||||||
patch("CMakeDebugRelease.patch", when="@3.0.0-alpha4")
|
patch("CMakeDebugRelease.patch", when="@3.0.0-alpha4")
|
||||||
|
|
||||||
variant(
|
variant(
|
||||||
|
|
Loading…
Reference in a new issue