mpas-model: enable oneapi compiler (#46457)

Co-authored-by: stephenmsachs <stephenmsachs@users.noreply.github.com>
This commit is contained in:
Stephen Sachs 2024-09-27 11:18:23 +02:00 committed by GitHub
parent 7d6231b38a
commit 532e6b6aa9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,6 +69,11 @@ class MpasModel(MakefilePackage):
depends_on("mpi")
depends_on("parallelio")
conflicts(
"%oneapi@:2024.1",
msg="ifx internal compiler error triggered by maps-model fixed in oneapi@2024.2",
)
patch("makefile.patch", when="@7.0")
parallel = False
@ -114,7 +119,7 @@ def target(self, model, action):
cppflags.append("-DUNDERSCORE")
elif satisfies("%fj"):
fflags.extend(["-Free", "-Fwide", "-CcdRR8"])
elif satisfies("%intel"):
elif satisfies("%intel") or satisfies("%oneapi"):
fflags.extend(["-convert big_endian", "-FR"])
if satisfies("precision=double"):
fflags.extend(["-r8"])