Skip to content
Snippets Groups Projects
Commit 8bec127a authored by Kelly (KT) Thompson's avatar Kelly (KT) Thompson
Browse files

Attempt to fix formatting issues (flake8).

parent 9482ce1f
No related branches found
No related tags found
No related merge requests found
# MOAB
from spack import * from spack import *
class Moab(Package): class Moab(Package):
"""MOAB is a component for representing and evaluating mesh data. MOAB can store structured and unstructured mesh, consisting of elements in the finite element 'zoo.' The functional interface to MOAB is simple yet powerful, allowing the representation of many types of metadata commonly found on the mesh. MOAB is optimized for efficiency in space and time, based on access to mesh in chunks rather than through individual entities, while also versatile enough to support individual entity access.""" """MOAB is a component for representing and evaluating mesh
data. MOAB can store structured and unstructured mesh, consisting
of elements in the finite element 'zoo.' The functional interface
to MOAB is simple yet powerful, allowing the representation of
many types of metadata commonly found on the mesh. MOAB is
optimized for efficiency in space and time, based on access to
mesh in chunks rather than through individual entities, while also
versatile enough to support individual entity access."""
homepage = "https://bitbucket.org/fathomteam/moab" homepage = "https://bitbucket.org/fathomteam/moab"
url = "http://ftp.mcs.anl.gov/pub/fathom/moab-4.6.3.tar.gz" url = "http://ftp.mcs.anl.gov/pub/fathom/moab-4.6.3.tar.gz"
...@@ -11,8 +17,10 @@ class Moab(Package): ...@@ -11,8 +17,10 @@ class Moab(Package):
version('4.9.0', '40695d0a159040683cfa05586ad4a7c2') version('4.9.0', '40695d0a159040683cfa05586ad4a7c2')
version('4.8.2', '1dddd10f162fce3cfffaedc48f6f467d') version('4.8.2', '1dddd10f162fce3cfffaedc48f6f467d')
variant('netcdf', default=False, description='Required to enable the ExodusII reader/writer.') variant('netcdf', default=False,
variant('shared', default=True, description='Enables the build of shared libraries') description='Required to enable the ExodusII reader/writer.')
variant('shared', default=True,
description='Enables the build of shared libraries')
# There are many possible variants for MOAB. Here are examples for # There are many possible variants for MOAB. Here are examples for
# two of them: # two of them:
...@@ -24,31 +32,33 @@ class Moab(Package): ...@@ -24,31 +32,33 @@ class Moab(Package):
depends_on('mpi') depends_on('mpi')
depends_on('hdf5+mpi') depends_on('hdf5+mpi')
depends_on('netcdf+mpi',when='+netcdf') depends_on('netcdf+mpi', when='+netcdf')
depends_on('parmetis') depends_on('parmetis')
depends_on('trilinos') # looking for zoltan. depends_on('trilinos') # looking for zoltan.
def install(self, spec, prefix): def install(self, spec, prefix):
options = ['--prefix=%s' % prefix, options = [
'--enable-optimize', '--prefix=%s' % prefix,
'--enable-tools', '--enable-optimize',
'--with-pic', '--enable-tools',
'--with-mpi=%s' % spec['mpi'].prefix, '--with-pic',
'--with-hdf5=%s' % spec['hdf5'].prefix, '--with-mpi=%s' % spec['mpi'].prefix,
'--with-parmetis=%s' % spec['parmetis'].prefix, '--with-hdf5=%s' % spec['hdf5'].prefix,
'--with-zoltan=%s' % spec['trilinos'].prefix, '--with-parmetis=%s' % spec['parmetis'].prefix,
'--disable-vtkMOABReader', '--with-zoltan=%s' % spec['trilinos'].prefix,
'--without-vtk', '--disable-vtkMOABReader',
'CXX=%s' % spec['mpi'].mpicxx, '--without-vtk',
'CC=%s' % spec['mpi'].mpicc, 'CXX=%s' % spec['mpi'].mpicxx,
'FC=%s' % spec['mpi'].mpifc ] 'CC=%s' % spec['mpi'].mpicc,
'FC=%s' % spec['mpi'].mpifc
]
if '+shared' in spec: if '+shared' in spec:
options.append('--enable-shared') options.append( '--enable-shared' )
if '+netcdf' in spec: if '+netcdf' in spec:
options.append('--with-netcdf=%s' % spec['netcdf'].prefix ) options.append( '--with-netcdf=%s' % spec['netcdf'].prefix )
configure(*options) configure( *options )
make() make()
make("install") make( "install" )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment