Skip to content

Commit

Permalink
access-om3-nuopc: depend on esmf with -fp-model precise (#132)
Browse files Browse the repository at this point in the history
* Also, use when="%intel"
  • Loading branch information
harshula authored Aug 7, 2024
1 parent d69e984 commit ee8b514
Showing 1 changed file with 2 additions and 4 deletions.
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("[email protected]:")
depends_on("[email protected]:")
depends_on("esmf cflags='-fp-model precise' fflags='-fp-model precise'", when="%intel")
depends_on("[email protected]:")
depends_on("[email protected]: 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("[email protected]: 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

0 comments on commit ee8b514

Please sign in to comment.