blob: 0f02b4922766aef85f32b66d76d1c6353b81765d (
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
|
# Copyright 2013-2021 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 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)
|