Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access-om3-nuopc: depend on esmf with -fp-model precise #132

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions packages/access-om3-nuopc/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import CMakePackage, variant, version, depends_on
from spack.compilers import supported_compilers


class AccessOm3Nuopc(CMakePackage):
"""ACCESS-OM3 global ocean-sea ice-wave coupled model."""
Expand Down Expand Up @@ -57,14 +55,14 @@ class AccessOm3Nuopc(CMakePackage):
depends_on("mpi")
depends_on("netcdf-fortran@4.6.0:")
depends_on("esmf@8.3.0:")
depends_on("esmf cflags='-fp-model precise' fflags='-fp-model precise'", when="%intel")
depends_on("fortranxml@4.1.2:")
depends_on("fms@2021.03: build_type==RelWithDebInfo precision=64 +large_file ~gfs_phys ~quad_precision")
depends_on("fms +openmp", when="+openmp")
depends_on("fms ~openmp", when="~openmp")

depends_on("parallelio@2.5.10: build_type==RelWithDebInfo")
if 'intel' in supported_compilers():
depends_on("parallelio fflags='-qno-opt-dynamic-align -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -fp-model source' cflags='-qno-opt-dynamic-align -fp-model precise -std=gnu99'")
depends_on("parallelio fflags='-qno-opt-dynamic-align -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -fp-model source' cflags='-qno-opt-dynamic-align -fp-model precise -std=gnu99'", when="%intel")

flag_handler = CMakePackage.build_system_flags

Expand Down
Loading