summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/exawind/package.py
blob: b7ba5e378d4aff702b6b7e166a9b7ec21a8e7976 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 2013-2024 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)

from spack.package import *


class Exawind(CMakePackage):
    """Multi-application driver for Exawind project."""

    homepage = "https://github.com/Exawind/exawind-driver"
    git = "https://github.com/Exawind/exawind-driver.git"

    maintainers("jrood-nrel", "psakievich")

    tags = ["ecp", "ecp-apps"]

    license("Apache-2.0")

    version("master", branch="main")

    depends_on("trilinos+stk")
    depends_on("tioga+shared~nodegid")
    depends_on("nalu-wind+hypre+openfast+tioga+wind-utils")
    depends_on("amr-wind+hypre+mpi+netcdf+openfast")
    depends_on("openfast+cxx+shared@2.6.0:")
    depends_on("yaml-cpp@0.6:")

    def cmake_args(self):
        spec = self.spec

        args = [
            self.define("Trilinos_DIR", spec["trilinos"].prefix),
            self.define("TIOGA_DIR", spec["tioga"].prefix),
            self.define("Nalu-Wind_DIR", spec["nalu-wind"].prefix),
            self.define("AMR-Wind_DIR", spec["amr-wind"].prefix),
            self.define("OpenFAST_DIR", spec["openfast"].prefix),
            self.define("YAML-CPP_DIR", spec["yaml-cpp"].prefix),
        ]

        return args