Skip to content

Commit

Permalink
Tidy up. Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
penguian committed Mar 27, 2024
1 parent facb2af commit 4d13f49
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/um7/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def setup_build_environment(self, env):
oasis3_mct_includes = []
for header in self.spec["oasis3-mct"].headers:
include = os.path.dirname(header)
if not include in oasis3_mct_includes:
if include not in oasis3_mct_includes:
oasis3_mct_includes.append(include)
env.prepend_path("CPATH", include)
env.prepend_path("LIBRARY_PATH", self.spec["dummygrib"].prefix.lib)
Expand All @@ -71,14 +71,12 @@ def install(self, spec, prefix):

fcm = which("fcm")

env["platform_config_dir"]="nci-x86-ifort"
platform = "nci-x86-ifort"
env["platform_config_dir"] = "nci-x86-ifort"
if "platform=oneapi" in spec:
env["platform_config_dir"]="nci-x86-ifx"
platform = "nci-x86-ifx"
env["platform_config_dir"] = "nci-x86-ifx"

env["optimisation_level"]=spec.variants["opt"].value
opt_value = spec.variants["opt"].value
env["optimisation_level"] = opt_value

env["openmp"] = "true"
if "~omp" in spec:
Expand All @@ -88,7 +86,7 @@ def install(self, spec, prefix):
if "~netcdf" in spec:
env["netcdf"] = "false"

hg = 3 # build HadGEM3 ONLY here
hg = 3 # build HadGEM3 ONLY here

# Whether to build debug --jhan: adjust path to configs
bld_config = f"bld-hadgem{hg}-mct.cfg"
Expand Down

0 comments on commit 4d13f49

Please sign in to comment.