openfoam: fix oneapi support

This commit is contained in:
Massimiliano Culpo 2024-12-07 10:21:31 +01:00
parent 63e328645f
commit 4f0006a480
No known key found for this signature in database
GPG Key ID: 3E52BB992233066C

View File

@ -910,7 +910,12 @@ class OpenfoamArch:
#: Map spack compiler names to OpenFOAM compiler names
# By default, simply capitalize the first letter
compiler_mapping = {"aocc": "Amd", "fj": "Fujitsu", "intel": "Icc", "oneapi": "Icx"}
compiler_mapping = {
"aocc": "Amd",
"fj": "Fujitsu",
"intel": "Icc",
"intel-oneapi-compilers": "Icx",
}
def __init__(self, spec, **kwargs):
# Some user settings, to be adjusted manually or via variants