diff options
author | Henrik Gulbrandsen <henrik@gulbra.net> | 2022-05-05 00:46:53 +0000 |
---|---|---|
committer | Lorenzo Salvadore <salvadore@FreeBSD.org> | 2022-05-06 13:01:10 +0000 |
commit | 76eabb91bc3b4876351856d1f156d8611e6a4178 (patch) | |
tree | b7a7075de8fed0dd3219ea6cc196853be5bbc69b | |
parent | 350359a03444205f8ee4972894ccc7d9346fca51 (diff) | |
download | ports-76eabb91bc3b4876351856d1f156d8611e6a4178.tar.gz ports-76eabb91bc3b4876351856d1f156d8611e6a4178.zip |
science/elmerfem: Fix build with GCC 11
PR: 263539
Reported by: exp-run (antoine@)
Approved by: gerald (mentor)
-rw-r--r-- | science/elmerfem/Makefile | 6 | ||||
-rw-r--r-- | science/elmerfem/files/patch-fem_src_modules_DCRComplexSolve.F90 | 58 |
2 files changed, 62 insertions, 2 deletions
diff --git a/science/elmerfem/Makefile b/science/elmerfem/Makefile index ca7a1c9c605f..7d42a1de33cd 100644 --- a/science/elmerfem/Makefile +++ b/science/elmerfem/Makefile @@ -3,7 +3,7 @@ PORTNAME= elmerfem DISTVERSIONPREFIX= release- DISTVERSION= 9.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science MAINTAINER= henrik@gulbra.net @@ -12,17 +12,19 @@ COMMENT= Multiphysical simulation software LICENSE= GPLv2 LIB_DEPENDS= libblas.so:math/blas \ + libhdf5.so:science/hdf5 \ libmetis.so:math/metis \ libmpich.so:net/mpich \ + libnetcdf.so:science/netcdf \ libopenblas.so:math/openblas \ libparpack.so:math/arpack-ng USES= cmake compiler:c++11-lang fortran -USE_LDCONFIG= ${PREFIX}/lib/elmersolver USE_GITHUB= yes GH_ACCOUNT= ElmerCSC +USE_LDCONFIG= ${PREFIX}/lib/elmersolver CMAKE_ARGS= -DELMER_FEM_REVISION:STRING=${GH_TAGNAME} ALL_TARGET= # empty diff --git a/science/elmerfem/files/patch-fem_src_modules_DCRComplexSolve.F90 b/science/elmerfem/files/patch-fem_src_modules_DCRComplexSolve.F90 new file mode 100644 index 000000000000..515d7d578f3e --- /dev/null +++ b/science/elmerfem/files/patch-fem_src_modules_DCRComplexSolve.F90 @@ -0,0 +1,58 @@ +--- fem/src/modules/DCRComplexSolve.F90.orig 2020-11-10 19:52:44 UTC ++++ fem/src/modules/DCRComplexSolve.F90 +@@ -433,6 +433,7 @@ CONTAINS + !------------------------------------------------------------------------------ + LOGICAL :: FirstTime = .TRUE., stat + REAL(KIND=dp), POINTER :: Hwrk(:,:,:) ++ INTEGER :: i + + SAVE FirstTime, Hwrk + !------------------------------------------------------------------------------ +@@ -485,6 +486,7 @@ CONTAINS + !------------------------------------------------------------------------------ + LOGICAL :: FirstTime = .TRUE., stat + REAL(KIND=dp), POINTER :: Hwrk(:,:,:) ++ INTEGER :: i + + SAVE FirstTime, Hwrk + !------------------------------------------------------------------------------ +@@ -1074,6 +1076,7 @@ contains + !------------------------------------------------------------------------------ + LOGICAL :: FirstTime = .TRUE., stat + REAL(KIND=dp), POINTER :: Hwrk(:,:,:) ++ INTEGER :: i + + SAVE FirstTime, Hwrk + !------------------------------------------------------------------------------ +@@ -1374,6 +1377,7 @@ contains + !------------------------------------------------------------------------------ + LOGICAL :: FirstTime = .TRUE., stat + REAL(KIND=dp), POINTER :: Hwrk(:,:,:) ++ INTEGER :: i + + SAVE FirstTime, Hwrk + !------------------------------------------------------------------------------ +@@ -1426,6 +1430,7 @@ contains + !------------------------------------------------------------------------------ + LOGICAL :: FirstTime = .TRUE., stat + REAL(KIND=dp), POINTER :: Hwrk(:,:,:) ++ INTEGER :: i + + SAVE FirstTime, Hwrk + !------------------------------------------------------------------------------ +@@ -1727,6 +1732,7 @@ CONTAINS + !------------------------------------------------------------------------------ + LOGICAL :: FirstTime = .TRUE., stat + REAL(KIND=dp), POINTER :: Hwrk(:,:,:) ++ INTEGER :: i + + SAVE FirstTime, Hwrk + !------------------------------------------------------------------------------ +@@ -1779,6 +1785,7 @@ CONTAINS + !------------------------------------------------------------------------------ + LOGICAL :: FirstTime = .TRUE., stat + REAL(KIND=dp), POINTER :: Hwrk(:,:,:) ++ INTEGER :: i + + SAVE FirstTime, Hwrk + !------------------------------------------------------------------------------ |