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.
- Loading branch information
1 parent
623ff83
commit 847f560
Showing
1 changed file
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright Spack Project Developers. See COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
from spack.package import * | ||
|
||
|
||
class Hard(CMakePackage): | ||
"""A FleCSI-based radiation-hydrodynamics solver suite | ||
for the study of astrophysical phenomena""" | ||
|
||
git = "https://github.com/lanl/hard" | ||
maintainers("JulienLoiseau") | ||
|
||
version("main", branch="main") | ||
|
||
variant("catalyst", default=False, description="Enable catalyst for paraview interface") | ||
variant("radiation", default=True, description="Enable support for radiation physics") | ||
variant("tests", default=False, description="Enable unit tests") | ||
|
||
depends_on("[email protected]") | ||
depends_on("libcatalyst", when="+catalyst") | ||
depends_on("[email protected]:") | ||
|
||
def cmake_args(self): | ||
options = [ | ||
self.define_from_variant("ENABLE_UNIT_TESTS", "tests"), | ||
self.define_from_variant("ENABLE_CATALYST", "catalyst"), | ||
self.define("DISABLE_RADIATION", self.spec.satisfies("~radiation")), | ||
] | ||
|
||
return options |