forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exawind: remove generated fortran dependencies (spack#47276)
- Loading branch information
1 parent
e81ce18
commit 25a5585
Showing
4 changed files
with
47 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,15 +13,6 @@ def _parse_float(val): | |
return False | ||
|
||
|
||
def submodules(package): | ||
submodules = [] | ||
if package.spec.satisfies("+wind-utils"): | ||
submodules.append("wind-utils") | ||
if package.spec.satisfies("+tests"): | ||
submodules.append("reg_tests/mesh") | ||
return submodules | ||
|
||
|
||
class NaluWind(CMakePackage, CudaPackage, ROCmPackage): | ||
"""Nalu-Wind: Wind energy focused variant of Nalu.""" | ||
|
||
|
@@ -33,9 +24,9 @@ class NaluWind(CMakePackage, CudaPackage, ROCmPackage): | |
|
||
tags = ["ecp", "ecp-apps"] | ||
|
||
version("master", branch="master", submodules=submodules) | ||
version("2.1.0", tag="v2.1.0", submodules=submodules) | ||
version("2.0.0", tag="v2.0.0", submodules=submodules) | ||
version("master", branch="master", submodules=True) | ||
version("2.1.0", tag="v2.1.0", submodules=True) | ||
version("2.0.0", tag="v2.0.0", submodules=True) | ||
|
||
variant("pic", default=True, description="Position independent code") | ||
variant( | ||
|
@@ -66,6 +57,10 @@ class NaluWind(CMakePackage, CudaPackage, ROCmPackage): | |
"tests", default=False, description="Enable regression tests and clone the mesh submodule" | ||
) | ||
|
||
depends_on("c", type="build") | ||
depends_on("cxx", type="build") | ||
depends_on("fortran", type="build", when="+openfast") | ||
|
||
depends_on("mpi") | ||
depends_on("[email protected]:") | ||
depends_on("[email protected]:+cxx+netcdf", when="+fsi") | ||
|
@@ -156,7 +151,6 @@ def cmake_args(self): | |
|
||
args = [ | ||
self.define("CMAKE_CXX_COMPILER", spec["mpi"].mpicxx), | ||
self.define("CMAKE_Fortran_COMPILER", spec["mpi"].mpifc), | ||
self.define("Trilinos_DIR", spec["trilinos"].prefix), | ||
self.define("YAML_DIR", spec["yaml-cpp"].prefix), | ||
self.define("CMAKE_CXX_STANDARD", "17"), | ||
|
@@ -177,6 +171,7 @@ def cmake_args(self): | |
|
||
if spec.satisfies("+openfast"): | ||
args.append(self.define("OpenFAST_DIR", spec["openfast"].prefix)) | ||
args.append(self.define("CMAKE_Fortran_COMPILER", spec["mpi"].mpifc)) | ||
|
||
if spec.satisfies("+tioga"): | ||
args.append(self.define("TIOGA_DIR", spec["tioga"].prefix)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters