damask: fix build of alpha release (#38457)

This commit is contained in:
Martin Diehl 2023-07-05 10:59:05 +02:00 committed by GitHub
parent 8b13440038
commit 6a258c148f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View 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

View file

@ -40,6 +40,9 @@ class DamaskGrid(CMakePackage):
depends_on("fftw+mpi")
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("CMakeDebugRelease.patch", when="@3.0.0-alpha4")

View file

@ -39,6 +39,8 @@ class DamaskMesh(CMakePackage):
depends_on("hdf5@1.10:+mpi+fortran")
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")
variant(