modified:var/spack/repos/builtin/packages/ppopen-appl-amr-fdm/package.py (#19459)
This commit is contained in:
parent
680c0ac06d
commit
5407a74f2b
1 changed files with 5 additions and 4 deletions
|
@ -4,7 +4,6 @@
|
|||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
from spack import *
|
||||
import os
|
||||
|
||||
|
||||
class PpopenApplAmrFdm(MakefilePackage):
|
||||
|
@ -15,9 +14,9 @@ class PpopenApplAmrFdm(MakefilePackage):
|
|||
"""
|
||||
|
||||
homepage = "http://ppopenhpc.cc.u-tokyo.ac.jp/ppopenhpc/"
|
||||
url = "file://{0}/ppohAMRFDM_0.3.0.tar.gz".format(os.getcwd())
|
||||
git = "https://github.com/Post-Peta-Crest/ppOpenHPC.git"
|
||||
|
||||
version('0.3.0', sha256='e82217e4c949dd079a56024d3d1c1761dc8efd5ad0d26a3af83564c3db7327bb')
|
||||
version('master', branch='APPL/FDM_AMR')
|
||||
|
||||
depends_on('mpi')
|
||||
|
||||
|
@ -25,10 +24,12 @@ class PpopenApplAmrFdm(MakefilePackage):
|
|||
build_targets = ['default', 'advAMR3D']
|
||||
|
||||
def edit(self, spec, prefix):
|
||||
mkdirp('bin')
|
||||
mkdirp('lib')
|
||||
mkdirp('include')
|
||||
fflags = [
|
||||
'-O3',
|
||||
'-I.',
|
||||
'-I{0}/include'.format(os.getcwd())
|
||||
]
|
||||
makefile_in = FileFilter('Makefile.in')
|
||||
makefile_in.filter('^PREFIX +=.*', 'PREFIX = {0}'.format(prefix))
|
||||
|
|
Loading…
Reference in a new issue