@@ -0,0 +1,2300 @@
+from spack import *%0A%0Aclass Dealii(Package):%0A    %22%22%22C++ software library providing well-documented tools to build finite element codes for a broad variety of PDEs.%22%22%22%0A    homepage = %22https://www.dealii.org%22%0A    url      = %22https://github.com/dealii/dealii/releases/download/v8.4.0/dealii-8.4.0.tar.gz%22%0A%0A    version('8.4.0', 'ac5dbf676096ff61e092ce98c80c2b00')%0A%0A    depends_on (%22cmake%22)%0A    depends_on (%22blas%22)%0A    depends_on (%22lapack%22)%0A    depends_on (%22mpi%22)%0A%0A    #depends_on (%22arpack%22)%0A    depends_on (%22boost%22)%0A    #depends_on (%22doxygen%22)%0A    depends_on (%22hdf5+mpi%22)%0A    depends_on (%22metis%22)%0A    #depends_on %22muparser%22%0A    depends_on (%22netcdf%22)%0A    #depends_on (%22numdiff%22)%0A    #depends_on (%22oce%22)%0A    depends_on (%22p4est%22)%0A    depends_on (%22parmetis%22)%0A    depends_on (%22petsc%22)%0A    #depends_on (%22slepc%22)%0A    depends_on (%22SuiteSparse%22)%0A    #depends_on %22tbb%22%0A    depends_on (%22trilinos%22)%0A%0A    def install(self, spec, prefix):%0A        options = %5B%5D%0A        options.extend(std_cmake_args)%0A%0A        # CMAKE_BUILD_TYPE should be DebugRelease %7C Debug %7C Release%0A        for word in options%5B:%5D:%0A            if word.startswith('-DCMAKE_BUILD_TYPE'):%0A                options.remove(word)%0A%0A        options.extend(%5B%0A            '-DCMAKE_BUILD_TYPE=DebugRelease',%0A            '-DDEAL_II_WITH_THREADS:BOOL=ON'%0A            '-DDEAL_II_WITH_MPI:BOOL=ON',%0A            '-DCMAKE_C_COMPILER=%25s' %25 join_path(self.spec%5B'mpi'%5D.prefix.bin, 'mpicc'),%0A            '-DCMAKE_CXX_COMPILER=%25s' %25 join_path(self.spec%5B'mpi'%5D.prefix.bin, 'mpic++'),%0A            '-DCMAKE_Fortran_COMPILER=%25s' %25 join_path(self.spec%5B'mpi'%5D.prefix.bin, 'mpif90'),%0A            #'-DARPACK_DIR=%25s' %25  ,%0A            '-DBOOST_DIR=%25s' %25 spec%5B'boost'%5D.prefix,%0A            '-DHDF5_DIR=%25s' %25 spec%5B'hdf5'%5D.prefix,%0A            '-DMETIS_DIR=%25s' %25 spec%5B'metis'%5D.prefix,%0A            #'-DMUPARSER_DIR=%25s '%0A            '-DNETCDF_DIR=%25s' %25 spec%5B'netcdf'%5D.prefix,%0A            #'-DOPENCASCADE_DIR=%0A            '-DP4EST_DIR=%25s' %25 spec%5B'p4est'%5D.prefix,%0A            '-DPETSC_DIR=%25s' %25 spec%5B'petsc'%5D.prefix,%0A            #'-DSLEPC_DIR=%0A            '-DUMFPACK_DIR=%25s' %25 spec%5B'SuiteSparse'%5D.prefix,%0A            #'-DTBB_DIR=%25s'%0A            '-DTRILINOS_DIR=%25s' %25 spec%5B'trilinos'%5D.prefix%0A        %5D)%0A%0A        cmake('.', *options)%0A%0A        make()%0A        make(%22test%22)%0A        make(%22install%22)%0A

add deal.ii package