spack/var/spack/repos/builtin/packages/tycho2/package.py
Harmen Stoppels fce95e2efb
license year bump (#34921)
* license bump year
* fix black issues of modified files
* mypy
* fix 2021 -> 2023
2023-01-18 14:30:17 -08:00

38 lines
1.0 KiB
Python

# Copyright 2013-2023 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 Tycho2(MakefilePackage):
"""A neutral particle transport mini-app to study performance of sweeps
on unstructured, 3D tetrahedral meshes.
"""
homepage = "https://github.com/lanl/tycho2"
git = "https://github.com/lanl/tycho2.git"
version("develop", branch="master")
depends_on("mpi")
def patch(self):
# make.inc is included by Makefile to set MPICC, but we that
# through build_targets() below, so any empty include file is fine.
touch("make.inc")
@property
def build_targets(self):
targets = [
"MPICC={0} -std=c++11 {1}".format(self.spec["mpi"].mpicxx, self.compiler.openmp_flag)
]
return targets
def install(self, spec, prefix):
mkdirp(prefix.bin)
install("sweep.x", prefix.bin)