diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/foam-extend/package.py | 1 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam-com/1612-bin.patch (renamed from var/spack/repos/builtin/packages/openfoam-com/openfoam-bin-1612.patch) | 0 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam-com/1612-build.patch (renamed from var/spack/repos/builtin/packages/openfoam-com/openfoam-build-1612.patch) | 0 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam-com/1612-etc.patch (renamed from var/spack/repos/builtin/packages/openfoam-com/openfoam-etc-1612.patch) | 0 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam-com/1612-mgridgen-lib.patch (renamed from var/spack/repos/builtin/packages/openfoam-com/mgridgen-lib-1612.patch) | 0 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam-com/1612-mpi.patch (renamed from var/spack/repos/builtin/packages/openfoam-com/openfoam-mpi-1612.patch) | 0 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam-com/1612-scotch-metis-lib.patch (renamed from var/spack/repos/builtin/packages/openfoam-com/scotch-metis-lib-1612.patch) | 0 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam-com/1612-site.patch (renamed from var/spack/repos/builtin/packages/openfoam-com/openfoam-site-1612.patch) | 0 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam-com/1612-zoltan-lib.patch (renamed from var/spack/repos/builtin/packages/openfoam-com/zoltan-lib-1612.patch) | 0 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam-com/openfoam-site.patch (renamed from var/spack/repos/builtin/packages/openfoam-com/openfoam-site-plus.patch) | 0 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam-com/package.py | 44 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam-org/41-etc.patch (renamed from var/spack/repos/builtin/packages/openfoam-org/openfoam-etc-41.patch) | 0 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam-org/41-site.patch (renamed from var/spack/repos/builtin/packages/openfoam-org/openfoam-site-41.patch) | 0 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam-org/package.py | 5 |
14 files changed, 27 insertions, 23 deletions
diff --git a/var/spack/repos/builtin/packages/foam-extend/package.py b/var/spack/repos/builtin/packages/foam-extend/package.py index a6776b182f..9e4a6c4d0b 100644 --- a/var/spack/repos/builtin/packages/foam-extend/package.py +++ b/var/spack/repos/builtin/packages/foam-extend/package.py @@ -143,7 +143,6 @@ class FoamExtend(Package): run_env.set('WM_PROJECT_DIR', self.projectdir) for d in ['wmake', self.archbin]: # bin already added automatically run_env.prepend_path('PATH', join_path(self.projectdir, d)) - run_env.set('MPI_BUFFER_SIZE', "20000000") def setup_dependent_environment(self, spack_env, run_env, dependent_spec): """Provide location of the OpenFOAM project. diff --git a/var/spack/repos/builtin/packages/openfoam-com/openfoam-bin-1612.patch b/var/spack/repos/builtin/packages/openfoam-com/1612-bin.patch index b9e87a7ec8..b9e87a7ec8 100644 --- a/var/spack/repos/builtin/packages/openfoam-com/openfoam-bin-1612.patch +++ b/var/spack/repos/builtin/packages/openfoam-com/1612-bin.patch diff --git a/var/spack/repos/builtin/packages/openfoam-com/openfoam-build-1612.patch b/var/spack/repos/builtin/packages/openfoam-com/1612-build.patch index 26e2d8f085..26e2d8f085 100644 --- a/var/spack/repos/builtin/packages/openfoam-com/openfoam-build-1612.patch +++ b/var/spack/repos/builtin/packages/openfoam-com/1612-build.patch diff --git a/var/spack/repos/builtin/packages/openfoam-com/openfoam-etc-1612.patch b/var/spack/repos/builtin/packages/openfoam-com/1612-etc.patch index dd8146e953..dd8146e953 100644 --- a/var/spack/repos/builtin/packages/openfoam-com/openfoam-etc-1612.patch +++ b/var/spack/repos/builtin/packages/openfoam-com/1612-etc.patch diff --git a/var/spack/repos/builtin/packages/openfoam-com/mgridgen-lib-1612.patch b/var/spack/repos/builtin/packages/openfoam-com/1612-mgridgen-lib.patch index 8dc0b995ff..8dc0b995ff 100644 --- a/var/spack/repos/builtin/packages/openfoam-com/mgridgen-lib-1612.patch +++ b/var/spack/repos/builtin/packages/openfoam-com/1612-mgridgen-lib.patch diff --git a/var/spack/repos/builtin/packages/openfoam-com/openfoam-mpi-1612.patch b/var/spack/repos/builtin/packages/openfoam-com/1612-mpi.patch index b3663b0a49..b3663b0a49 100644 --- a/var/spack/repos/builtin/packages/openfoam-com/openfoam-mpi-1612.patch +++ b/var/spack/repos/builtin/packages/openfoam-com/1612-mpi.patch diff --git a/var/spack/repos/builtin/packages/openfoam-com/scotch-metis-lib-1612.patch b/var/spack/repos/builtin/packages/openfoam-com/1612-scotch-metis-lib.patch index b7530e6320..b7530e6320 100644 --- a/var/spack/repos/builtin/packages/openfoam-com/scotch-metis-lib-1612.patch +++ b/var/spack/repos/builtin/packages/openfoam-com/1612-scotch-metis-lib.patch diff --git a/var/spack/repos/builtin/packages/openfoam-com/openfoam-site-1612.patch b/var/spack/repos/builtin/packages/openfoam-com/1612-site.patch index d988c2f9b8..d988c2f9b8 100644 --- a/var/spack/repos/builtin/packages/openfoam-com/openfoam-site-1612.patch +++ b/var/spack/repos/builtin/packages/openfoam-com/1612-site.patch diff --git a/var/spack/repos/builtin/packages/openfoam-com/zoltan-lib-1612.patch b/var/spack/repos/builtin/packages/openfoam-com/1612-zoltan-lib.patch index 712e6a7dfd..712e6a7dfd 100644 --- a/var/spack/repos/builtin/packages/openfoam-com/zoltan-lib-1612.patch +++ b/var/spack/repos/builtin/packages/openfoam-com/1612-zoltan-lib.patch diff --git a/var/spack/repos/builtin/packages/openfoam-com/openfoam-site-plus.patch b/var/spack/repos/builtin/packages/openfoam-com/openfoam-site.patch index a1f5d8a08a..a1f5d8a08a 100644 --- a/var/spack/repos/builtin/packages/openfoam-com/openfoam-site-plus.patch +++ b/var/spack/repos/builtin/packages/openfoam-com/openfoam-site.patch diff --git a/var/spack/repos/builtin/packages/openfoam-com/package.py b/var/spack/repos/builtin/packages/openfoam-com/package.py index 9e930535a0..0e2c0275d3 100644 --- a/var/spack/repos/builtin/packages/openfoam-com/package.py +++ b/var/spack/repos/builtin/packages/openfoam-com/package.py @@ -54,6 +54,9 @@ # - Combining +zoltan with +int64 has not been tested, but probably won't work. # - Combining +mgridgen with +int64 or +float32 probably won't work. # +# The spack 'develop' version of openfoam-com retains the upstream +# WM_PROJECT_VERSION=plus naming internally. +# ############################################################################## from spack import * from spack.environment import * @@ -258,12 +261,14 @@ class OpenfoamCom(Package): """ homepage = "http://www.openfoam.com/" - baseurl = "https://sourceforge.net/projects/openfoamplus/files" + baseurl = "https://sourceforge.net/projects/openfoamplus/files/" + gitrepo = "https://develop.openfoam.com/Development/OpenFOAM-plus.git" + version('1706', '630d30770f7b54d6809efbf94b7d7c8f', + url=baseurl + 'v1706/OpenFOAM-v1706.tgz') version('1612', 'ca02c491369150ab127cbb88ec60fbdf', - url=baseurl + '/v1612+/OpenFOAM-v1612+.tgz') - version('plus', branch='develop', # Note: needs user credentials - git='https://develop.openfoam.com/Development/OpenFOAM-plus.git') + url=baseurl + 'v1612+/OpenFOAM-v1612+.tgz') + version('develop', branch='develop', git=gitrepo) # Needs credentials variant('int64', default=False, description='Compile with 64-bit label') @@ -309,27 +314,29 @@ class OpenfoamCom(Package): # Workaround: use preferred variants "+plugins +qt" in # ~/.spack/packages.yaml + # 1706 ok with newer paraview but avoid pv-5.2, pv-5.3 readers + depends_on('paraview@5.4:', when='@1706:+paraview') # 1612 plugins need older paraview - # The native reader in paraview 5.2 is broken, so start after that depends_on('paraview@:5.0.1', when='@1612+paraview') - depends_on('paraview@5.3:', when='@1706:+paraview') - depends_on('paraview@5.3:', when='@plus+paraview') # General patches common = ['spack-Allwmake', 'README-spack'] assets = [] # Version-specific patches - patch('openfoam-bin-1612.patch', when='@1612') - patch('openfoam-etc-1612.patch', when='@1612') - patch('openfoam-site-1612.patch', when='@1612') - patch('openfoam-mpi-1612.patch', when='@1612') - patch('openfoam-build-1612.patch', when='@1612') - patch('mgridgen-lib-1612.patch', when='@1612') - patch('scotch-metis-lib-1612.patch', when='@1612') - patch('zoltan-lib-1612.patch', when='@1612') - - patch('openfoam-site-plus.patch', when='@plus') + patch('1612-bin.patch', when='@1612') + patch('1612-build.patch', when='@1612') + patch('1612-etc.patch', when='@1612') + patch('1612-site.patch', when='@1612') + patch('1612-mpi.patch', when='@1612') + patch('1612-mgridgen-lib.patch', when='@1612') + patch('1612-scotch-metis-lib.patch', when='@1612') + patch('1612-zoltan-lib.patch', when='@1612') + + # This patch is reasonably version-invariant + # 1) default site directly under WM_PROJECT_DIR + # 2) no FOAM_EXT_LIBBIN required + patch('openfoam-site.patch', when='@1706:') # Some user config settings # default: 'compile-option': 'RpathOpt', @@ -349,7 +356,7 @@ class OpenfoamCom(Package): etc_config = {} phases = ['configure', 'build', 'install'] - build_script = './spack-Allwmake' # <- Added by patch() method. + build_script = './spack-Allwmake' # From patch() method. # # - End of definitions / setup - @@ -360,7 +367,6 @@ class OpenfoamCom(Package): run_env.set('WM_PROJECT_DIR', self.projectdir) for d in ['wmake', self.archbin]: # bin already added automatically run_env.prepend_path('PATH', join_path(self.projectdir, d)) - run_env.set('MPI_BUFFER_SIZE', "20000000") def setup_dependent_environment(self, spack_env, run_env, dependent_spec): """Provide location of the OpenFOAM project. diff --git a/var/spack/repos/builtin/packages/openfoam-org/openfoam-etc-41.patch b/var/spack/repos/builtin/packages/openfoam-org/41-etc.patch index 6fe3b7b4d3..6fe3b7b4d3 100644 --- a/var/spack/repos/builtin/packages/openfoam-org/openfoam-etc-41.patch +++ b/var/spack/repos/builtin/packages/openfoam-org/41-etc.patch diff --git a/var/spack/repos/builtin/packages/openfoam-org/openfoam-site-41.patch b/var/spack/repos/builtin/packages/openfoam-org/41-site.patch index d988c2f9b8..d988c2f9b8 100644 --- a/var/spack/repos/builtin/packages/openfoam-org/openfoam-site-41.patch +++ b/var/spack/repos/builtin/packages/openfoam-org/41-site.patch diff --git a/var/spack/repos/builtin/packages/openfoam-org/package.py b/var/spack/repos/builtin/packages/openfoam-org/package.py index a31cc2e210..bc0658597a 100644 --- a/var/spack/repos/builtin/packages/openfoam-org/package.py +++ b/var/spack/repos/builtin/packages/openfoam-org/package.py @@ -103,8 +103,8 @@ class OpenfoamOrg(Package): assets = ['bin/foamEtcFile'] # Version-specific patches - patch('openfoam-etc-41.patch', when='@4.1') - patch('openfoam-site-41.patch', when='@4.1') + patch('41-etc.patch', when='@4.1') + patch('41-site.patch', when='@4.1') # Some user config settings config = { @@ -134,7 +134,6 @@ class OpenfoamOrg(Package): run_env.set('WM_PROJECT_DIR', self.projectdir) for d in ['wmake', self.archbin]: # bin already added automatically run_env.prepend_path('PATH', join_path(self.projectdir, d)) - run_env.set('MPI_BUFFER_SIZE', "20000000") def setup_dependent_environment(self, spack_env, run_env, dependent_spec): """Provide location of the OpenFOAM project. |