diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/ppopen-appl-fdm-at/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/ppopen-appl-fdm-at/package.py | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/var/spack/repos/builtin/packages/ppopen-appl-fdm-at/package.py b/var/spack/repos/builtin/packages/ppopen-appl-fdm-at/package.py index c67dbf5b74..b72e29fbeb 100644 --- a/var/spack/repos/builtin/packages/ppopen-appl-fdm-at/package.py +++ b/var/spack/repos/builtin/packages/ppopen-appl-fdm-at/package.py @@ -12,9 +12,9 @@ class PpopenApplFdmAt(MakefilePackage): homepage = "http://ppopenhpc.cc.u-tokyo.ac.jp/ppopenhpc/" git = "https://github.com/Post-Peta-Crest/ppOpenHPC.git" - version('master', branch='ATA/FDM') + version("master", branch="ATA/FDM") - depends_on('mpi') + depends_on("mpi") # depends_on('ppopen-appl-fdm', type='build') build_directory = "3.hybrid_AT" @@ -22,28 +22,22 @@ class PpopenApplFdmAt(MakefilePackage): def edit(self, spec, prefix): with working_dir(self.build_directory): - fflags = ['-O3', self.compiler.openmp_flag] - if spec.satisfies('%gcc'): - fflags.append('-ffree-line-length-none') - if spec.satisfies('arch=x86_64:'): - fflags.append('-mcmodel=medium') - makefile_opt = FileFilter('Makefile.option') - makefile_opt.filter( - 'FC = .*$', - 'FC = {0}'.format(spec['mpi'].mpifc) - ) - makefile_opt.filter( - 'FFLAGS = .*$', - 'FFLAGS = -O3 {0}'.format(' '.join(fflags)) - ) + fflags = ["-O3", self.compiler.openmp_flag] + if spec.satisfies("%gcc"): + fflags.append("-ffree-line-length-none") + if spec.satisfies("arch=x86_64:"): + fflags.append("-mcmodel=medium") + makefile_opt = FileFilter("Makefile.option") + makefile_opt.filter("FC = .*$", "FC = {0}".format(spec["mpi"].mpifc)) + makefile_opt.filter("FFLAGS = .*$", "FFLAGS = -O3 {0}".format(" ".join(fflags))) def install(self, spec, prefix): mkdir(prefix.bin) - copy(join_path(self.build_directory, 'seism3d3n'), prefix.bin) + copy(join_path(self.build_directory, "seism3d3n"), prefix.bin) install_src_dir = join_path(prefix.src, self.build_directory) mkdirp(install_src_dir) install_tree(self.build_directory, install_src_dir) with working_dir(install_src_dir): - make('clean') + make("clean") mkdir(prefix.doc) - copy('readme.txt', prefix.doc) + copy("readme.txt", prefix.doc) |