Skip to content

Commit

Permalink
set fp-model precise and tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-seaice authored Mar 6, 2025
1 parent 018ed64 commit c610c25
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions packages/access-om3-nuopc/package.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Copyright 2013-2025 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
Expand All @@ -15,12 +15,6 @@ class AccessOm3Nuopc(CMakePackage):

version("main", branch="main", submodules=True)

variant(
"build_type",
default="Release",
description="The build type to build",
values=("Debug", "Release"),
)
variant(
"configurations",
default="MOM6-CICE6, CICE6-WW3, MOM6-CICE6-WW3",
Expand Down Expand Up @@ -55,16 +49,17 @@ 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("esmf cflags='-fp-model precise' fflags='-fp-model precise'", when="%oneapi")
for compiler in ["%intel", "%oneapi"]:
depends_on("esmf cflags='-fp-model precise' fflags='-fp-model precise'", when=compiler)
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")
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")

depends_on("parallelio fflags='-qno-opt-dynamic-align -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -fp-model precise' cflags='-qno-opt-dynamic-align -fp-model precise -std=gnu99'", when="%intel")
depends_on("parallelio fflags='-fp-model precise' cflags='-fp-model precise', when='%oneapi')

Check failure on line 62 in packages/access-om3-nuopc/package.py

View workflow job for this annotation

GitHub Actions / Check syntax

Ruff (E999)

packages/access-om3-nuopc/package.py:61:98: E999 SyntaxError: EOL while scanning string literal
flag_handler = CMakePackage.build_system_flags

def cmake_args(self):
Expand Down

0 comments on commit c610c25

Please sign in to comment.