Add TIOGA package and optional dependency of Nalu on TIOGA (#6638)

This commit is contained in:
Jon Rood
2017-12-14 12:46:25 -07:00
committed by scheibelp
parent ce832fca59
commit b447c2ba51
2 changed files with 64 additions and 0 deletions

View File

@@ -39,6 +39,8 @@ class Nalu(CMakePackage):
variant('openfast', default=False,
description='Compile with OpenFAST support')
variant('tioga', default=False,
description='Compile with Tioga support')
version('master',
git='https://github.com/NaluCFD/Nalu.git', branch='master')
@@ -47,6 +49,7 @@ class Nalu(CMakePackage):
depends_on('yaml-cpp+pic~shared@0.5.3:')
depends_on('trilinos~shared+exodus+tpetra+muelu+belos+ifpack2+amesos2+zoltan+stk+boost~superlu-dist+superlu+hdf5+zlib+pnetcdf+shards@master,12.12.1:')
depends_on('openfast+cxx', when='+openfast')
depends_on('tioga', when='+tioga')
def cmake_args(self):
spec = self.spec
@@ -60,7 +63,14 @@ def cmake_args(self):
if '+openfast' in spec:
options.extend([
'-DENABLE_OPENFAST:BOOL=ON',
'-DOpenFAST_DIR:PATH=%s' % spec['openfast'].prefix
])
if '+tioga' in spec:
options.extend([
'-DENABLE_TIOGA:BOOL=ON',
'-DTIOGA_DIR:PATH=%s' % spec['tioga'].prefix
])
return options