sirius: fix build error with Fujitsu compiler (#41101)
This commit is contained in:
parent
eda3522ce8
commit
b9f4d9f6fc
13
var/spack/repos/builtin/packages/sirius/fj.patch
Normal file
13
var/spack/repos/builtin/packages/sirius/fj.patch
Normal 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));
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user