abinit: fixed "if" statement bug (#46785)

fixed "if" statement when selecting the linear algebra flavor.
This commit is contained in:
downloadico 2024-10-04 11:24:06 -06:00 committed by GitHub
parent 5867d90ccf
commit 4caf718626
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -213,9 +213,9 @@ def configure_args(self):
is_using_intel_libraries = spec["lapack"].name in INTEL_MATH_LIBRARIES
if is_using_intel_libraries:
linalg_flavor = "mkl"
if spec.satisfies("@9:") and spec.satisfies("^openblas"):
elif spec.satisfies("@9:") and spec.satisfies("^openblas"):
linalg_flavor = "openblas"
if spec.satisfies("@9:") and spec.satisfies("^fujitsu-ssl2"):
elif spec.satisfies("@9:") and spec.satisfies("^fujitsu-ssl2"):
linalg_flavor = "openblas"
else:
linalg_flavor = "custom"