diff options
author | Toyohisa Kameyama <kameyama@riken.jp> | 2020-04-21 06:29:06 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 16:29:06 -0500 |
commit | 8e7f55e6d67a8f464fb543bb022add79562d05bf (patch) | |
tree | 0fc686edca00a76d647f8d992070012bd51dcb8f | |
parent | c2ca8328835d544440fd3b87813e2768ece58685 (diff) | |
download | spack-8e7f55e6d67a8f464fb543bb022add79562d05bf.tar.gz spack-8e7f55e6d67a8f464fb543bb022add79562d05bf.tar.bz2 spack-8e7f55e6d67a8f464fb543bb022add79562d05bf.tar.xz spack-8e7f55e6d67a8f464fb543bb022add79562d05bf.zip |
ppOpen-APPL/DEM-util: New package (#16120)
-rwxr-xr-x | var/spack/repos/builtin/packages/ppopen-appl-dem-util/package.py | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ppopen-appl-dem-util/package.py b/var/spack/repos/builtin/packages/ppopen-appl-dem-util/package.py new file mode 100755 index 0000000000..8fa6544db3 --- /dev/null +++ b/var/spack/repos/builtin/packages/ppopen-appl-dem-util/package.py @@ -0,0 +1,48 @@ +# Copyright 2013-2020 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 * +import os + + +class PpopenApplDemUtil(MakefilePackage): + """ + ppOpen-APPL/DEM provides fundamental components of the particle + simulations based on the discrete element method (DEM). + ppOpen-APPL/DEM (ver.1.0.0) includes the libraries for the DEM, + sample codes, and data sets. ppOpen-APPL/DEM-Util provides the + preconditioning utilities. This utility prepares data sets of distributed + data files from the mesh data sets. + + """ + + homepage = "http://ppopenhpc.cc.u-tokyo.ac.jp/ppopenhpc/" + url = "file://{0}/ppohDEM_util_1.0.0.tar.gz".format(os.getcwd()) + + version('1.0.0', sha256='e0aa9a61be3b9858a2885c9feff9b0fcd1d7039408f6bd82a73a79dfe86b0488') + + depends_on('mpi') + + def edit(self, spec, prefix): + makefile_in = FileFilter('Makefile.in') + makefile_in.filter('PREFIX += .*', 'PREFIX = {0}'.format(prefix)) + makefile_in.filter('F90 += .*', 'F90 = {0}'.format(spack_fc)) + makefile_in.filter('F77 += .*', 'F77 = {0}'.format(spack_fc)) + makefile_in.filter( + 'MPIF90 += .*', + 'MPIF90 = {0}'.format(spec['mpi'].mpifc) + ) + makefile_in.filter( + 'MPIF77 += .*', + 'MPIF77 = {0}'.format(spec['mpi'].mpifc) + ) + makefile_in.filter( + 'F90MPFLAGS += .*', + 'F90MPFLAGS = -O3 {0}'.format(self.compiler.openmp_flag) + ) + + def install(self, spec, prefix): + make('install') + install_tree('doc', prefix.doc) |