diff options
author | jiseung <anna.jiseung@gmail.com> | 2017-08-08 17:25:27 -0500 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-08-08 17:25:27 -0500 |
commit | f6a9c7d79c3a635bafe789444223547e5b29e9f7 (patch) | |
tree | dafa4416878278bf8b2428a95b2ece609011f6e4 | |
parent | 7f4d94667c9e3f8ecc361866007f23cb613f42e3 (diff) | |
download | spack-f6a9c7d79c3a635bafe789444223547e5b29e9f7.tar.gz spack-f6a9c7d79c3a635bafe789444223547e5b29e9f7.tar.bz2 spack-f6a9c7d79c3a635bafe789444223547e5b29e9f7.tar.xz spack-f6a9c7d79c3a635bafe789444223547e5b29e9f7.zip |
Packages/amr exp parabolic (#5027)
* new package: amr-exp-parabolic
* removed boilerplate and added tag
* install license and readme
* fix mpi build issues
* change access to include/lib directories and pep8 compliant now
-rw-r--r-- | var/spack/repos/builtin/packages/amr-exp-parabolic/package.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/amr-exp-parabolic/package.py b/var/spack/repos/builtin/packages/amr-exp-parabolic/package.py index dcb85a5590..47e400e18f 100644 --- a/var/spack/repos/builtin/packages/amr-exp-parabolic/package.py +++ b/var/spack/repos/builtin/packages/amr-exp-parabolic/package.py @@ -60,6 +60,21 @@ class AmrExpParabolic(MakefilePackage): build_directory = 'MiniApps/AMR_Adv_Diff_F90' def edit(self, spec, prefix): + def_file = FileFilter('Tools/F_mk/GMakedefs.mak') + def_file.filter('tdir = t/.*', 'tdir := t/$(suf)') + def_file.filter('hdir = t/.*', 'hdir := t/html') + def_file.filter('include $(BOXLIB_HOME)/Tools/F_mk/GMakeMPI.mak', '#') + + if '+mpi' in spec: + def_file.filter('FC.*:=.*', 'FC = {0}'.format(spec['mpi'].mpifc)) + def_file.filter('F90.*:=.*', 'F90 = {0}'.format(spec['mpi'].mpifc)) + def_file.filter( + 'mpi_include_dir =.*', + 'mpi_include_dir = {0}'.format(spec['mpi'].prefix.include)) + def_file.filter( + 'mpi_lib_dir =.*', + 'mpi_lib_dir = {0}'.format(spec['mpi'].prefix.lib)) + with working_dir(self.build_directory): makefile = FileFilter('GNUmakefile') if '+debug' in spec: @@ -76,3 +91,5 @@ class AmrExpParabolic(MakefilePackage): files = glob.glob(join_path(self.build_directory, '*.exe')) for f in files: install(f, prefix.bin) + install('README.txt', prefix) + install('license.txt', prefix) |