"Fossies" - the Fresh Open Source Software Archive

Member "petsc-3.12.3/config/BuildSystem/config/packages/ADIOS2.py" (12 Sep 2018, 1347 Bytes) of package /linux/misc/petsc-3.12.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "ADIOS2.py" see the Fossies "Dox" file reference documentation.

    1 import config.package
    2 
    3 class Configure(config.package.CMakePackage):
    4   def __init__(self, framework):
    5     config.package.CMakePackage.__init__(self, framework)
    6     self.gitcommit         = 'master'
    7     self.download          = ['git://https://github.com/ornladios/ADIOS2.git']
    8     self.downloaddirnames  = ['adios2']
    9     self.functions         = ['adios2_open']
   10     self.includes          = ['adios2_c.h']
   11     self.liblist           = [['libadios2f.a', 'libadios2.a'],['libadios2.a']]
   12     self.hastests          = 1
   13     return
   14 
   15   def setupDependencies(self, framework):
   16     config.package.CMakePackage.setupDependencies(self, framework)
   17     self.mpi            = framework.require('config.packages.MPI', self)
   18     self.hdf5           = framework.require('config.packages.hdf5', self)
   19     self.deps           = [self.mpi]
   20     self.odeps          = [self.hdf5]
   21     return
   22 
   23   def formCMakeConfigureArgs(self):
   24     '''Add ADIOS2 specific configure arguments'''
   25     args = config.package.CMakePackage.formCMakeConfigureArgs(self)
   26     args.append('-DADIOS2_USE_MPI=ON')
   27     if self.hdf5.found:
   28       args.append('-DADIOS2_USE_HDF5=ON')
   29       args.append('-DHDF5_DIR="'+self.hdf5.directory+'"')
   30     else:
   31       args.append('-DADIOS2_USE_HDF5=OFF')
   32     if not hasattr(self.compilers, 'FC'):
   33       args.append('-DADIOS2_USE_Fortran=OFF')
   34 
   35     return args
   36