summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorKensuke WATANABE <95006284+wkensuke@users.noreply.github.com>2023-12-05 20:54:03 +0900
committerGitHub <noreply@github.com>2023-12-05 12:54:03 +0100
commitb9f4d9f6fcfbdc993bc8569b8e4458ef93e3c814 (patch)
tree71fd3ce0ed2e5f44f45ade87c43c6ac3a001d4b3 /var
parenteda3522ce8ad26a71d608197127bf771c3cc3b69 (diff)
downloadspack-b9f4d9f6fcfbdc993bc8569b8e4458ef93e3c814.tar.gz
spack-b9f4d9f6fcfbdc993bc8569b8e4458ef93e3c814.tar.bz2
spack-b9f4d9f6fcfbdc993bc8569b8e4458ef93e3c814.tar.xz
spack-b9f4d9f6fcfbdc993bc8569b8e4458ef93e3c814.zip
sirius: fix build error with Fujitsu compiler (#41101)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/sirius/fj.patch13
-rw-r--r--var/spack/repos/builtin/packages/sirius/package.py1
2 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sirius/fj.patch b/var/spack/repos/builtin/packages/sirius/fj.patch
new file mode 100644
index 0000000000..567ced347e
--- /dev/null
+++ b/var/spack/repos/builtin/packages/sirius/fj.patch
@@ -0,0 +1,13 @@
+diff --git a/src/hamiltonian/hamiltonian.cpp b/src/hamiltonian/hamiltonian.cpp
+index 54a91df..ea66ecf 100644
+--- a/src/hamiltonian/hamiltonian.cpp
++++ b/src/hamiltonian/hamiltonian.cpp
+@@ -74,7 +74,7 @@ Hamiltonian0<T>::Hamiltonian0(Potential& potential__, bool precompute_lapw__)
+ for (int j1 = 0; j1 <= j2; j1++) {
+ int lm1 = type.indexb(j1).lm;
+ int idxrf1 = type.indexb(j1).idxrf;
+- hmt_[ia](j1, j2) = atom.radial_integrals_sum_L3<spin_block_t::nm>(idxrf1, idxrf2,
++ hmt_[ia](j1, j2) = atom.template radial_integrals_sum_L3<spin_block_t::nm>(idxrf1, idxrf2,
+ type.gaunt_coefs().gaunt_vector(lm1, lm2));
+ hmt_[ia](j2, j1) = std::conj(hmt_[ia](j1, j2));
+ }
diff --git a/var/spack/repos/builtin/packages/sirius/package.py b/var/spack/repos/builtin/packages/sirius/package.py
index fd73c669ec..e6da96a849 100644
--- a/var/spack/repos/builtin/packages/sirius/package.py
+++ b/var/spack/repos/builtin/packages/sirius/package.py
@@ -187,6 +187,7 @@ class Sirius(CMakePackage, CudaPackage, ROCmPackage):
depends_on("umpire+rocm~device_alloc", when="+rocm")
patch("mpi_datatypes.patch", when="@:7.2.6")
+ patch("fj.patch", when="@7.3.2: %fj")
def cmake_args(self):
spec = self.spec