Skip to content

Commit

Permalink
mom5: add oneapi 2025 compiler support (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshula authored Mar 5, 2025
1 parent 3bfca29 commit 2d3a8ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/mom5/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ def edit(self, spec, prefix):
"""

# Add support for the ifx compiler
config["oneapi"] = config["intel"]
# TODO: `.replace() is a temporary workaround for:
# icx: error: unsupported argument 'source' to option '-ffp-model='
# The `.replace()` apparently doesn't modify the object.
config["oneapi"] = config["intel"].replace("CFLAGS_REPRO := -fp-model precise -fp-model source", "CFLAGS_REPRO := -fp-model precise")

if self.spec.satisfies("@access-esm1.5:access-esm1.6"):
config["post"] = """
Expand Down

0 comments on commit 2d3a8ce

Please sign in to comment.