sirius: fix build error with Fujitsu compiler (#41101)

This commit is contained in:
Kensuke WATANABE 2023-12-05 20:54:03 +09:00 committed by GitHub
parent eda3522ce8
commit b9f4d9f6fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -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));
}

View File

@ -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