Skip to content

Commit

Permalink
access-om3-nuopc: use when="%intel"
Browse files Browse the repository at this point in the history
  • Loading branch information
harshula committed Jul 23, 2024
1 parent 7664f53 commit 800348c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 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,16 +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("esmf cflags='-fp-model precise' fflags='-fp-model precise'")
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 800348c

Please sign in to comment.