Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 539) sorted by relevance

12345678910>>...22

/petsc/config/BuildSystem/config/
H A Dpackage.py24 def __init__(self): argument
25 self.dir = 'UNKNOWN'
28 def __init__(self, framework): argument
29 config.base.Configure.__init__(self, framework)
30 self.headerPrefix = 'PETSC'
31 self.substPrefix = 'PETSC'
32 self.arch = None # The architecture identifier
33 self.externalPackagesDir = os.path.abspath('externalpackages')
36 self.found = 0
37 self.setNames()
[all …]
H A DcompilersFortran.py17 def __init__(self, framework): argument
18 config.base.Configure.__init__(self, framework)
19 self.headerPrefix = ''
20 self.substPrefix = ''
23 def setupDependencies(self, framework): argument
24 config.base.Configure.setupDependencies(self, framework)
25 self.setCompilers = framework.require('config.setCompilers', self)
26 self.compilerFlags = framework.require('config.compilerFlags', self)
27 self.libraries = framework.require('config.libraries', None)
28 self.compilers = framework.require('config.compilers', self)
[all …]
H A Dcompilers.py17 def __init__(self, framework): argument
18 config.base.Configure.__init__(self, framework)
19 self.headerPrefix = ''
20 self.substPrefix = ''
21 self.fortranMangling = 'unchanged'
22 self.fmainlibs = []
23 self.fincs = []
24self.flibs = [] # libraries needed for linking using the C or C++ compiler Fortran sou…
25self.clibs = [] # libraries needed for linking using the C++ or Fortran compiler C sou…
26self.cxxlibs = [] # libraries needed for linking using the C or Fortran compiler C++ sou…
[all …]
H A Dtypes.py6 def __init__(self, framework): argument
7 config.base.Configure.__init__(self, framework)
8 self.headerPrefix = ''
9 self.substPrefix = ''
10 self.sizes = {}
11 self.c99_complex = 0
12 self.cxx_complex = 0
15 def setupHelp(self, help): argument
20 def setupDependencies(self, framework): argument
21 config.base.Configure.setupDependencies(self, framework)
[all …]
H A DsetCompilers.py41 def update(self,*args): argument
44 self[key] = val
46 def __setitem__(self,key,val): argument
48 raise RuntimeError('must use strings as keys for {cls}'.format(cls=self.__class__))
50 super(defaultdict,self).__setitem__(key.lower(),val)
52 def __missing__(self,key): argument
54 raise RuntimeError('must use strings as keys for {cls}'.format(cls=self.__class__))
56 if key not in self.keys():
57 self[key] = self.default_factory()
58 return self[key]
[all …]
/petsc/config/PETSc/options/
H A DscalarTypes.py5 def __init__(self, framework): argument
6 config.base.Configure.__init__(self, framework)
7 self.headerPrefix = ''
8 self.substPrefix = ''
9 self.have__fp16 = 0
10 self.have__float128 = 0
13 def __str1__(self): argument
14 output = ' Scalar type: ' + self.scalartype + '\n'
15 output += ' Precision: ' + self.precision + '\n'
17 if self.have__fp16 and not self.precision == '__fp16': support.append('__fp16')
[all …]
H A DsharedLibraries.py5 def __init__(self, framework): argument
6 config.base.Configure.__init__(self, framework)
7 self.headerPrefix = ''
8 self.substPrefix = ''
9 self.useShared = 0
12 def __str1__(self): argument
13 … txt = ' Single library: %s\n' % ('yes' if self.framework.argDB['with-single-library'] else 'no')
14 txt += ' Shared libraries: %s\n' % ('yes' if self.useShared else 'no')
17 def setupHelp(self, help): argument
23 def setupDependencies(self, framework): argument
[all …]
/petsc/config/BuildSystem/config/packages/
H A DMPI.py12 def __init__(self, framework): argument
13 config.package.Package.__init__(self, framework)
14 self.minversion = '2'
15 self.versionname = 'MPI_VERSION'
16 self.functions = ['MPI_Init', 'MPI_Comm_create']
17 self.includes = ['mpi.h']
44self.liblist = liblist_mpich + liblist_lam + liblist_msmpi + liblist_other + liblist_sing…
46 self.required = 1
47 self.isPOE = 0
48 self.usingMPIUni = 0
[all …]
H A DFiredrake.py5 def __init__(self, framework): argument
6 config.package.PythonPackage.__init__(self, framework)
7 self.pkgname = 'firedrake'
8 self.useddirectly = 0
9 self.linkedbypetsc = 0
10 self.builtafterpetsc = 1
11 self.PrefixWriteCheck = 0
13 def setupDependencies(self, framework): argument
14 config.package.PythonPackage.setupDependencies(self, framework)
15 self.python = framework.require('config.packages.Python',self)
[all …]
H A DHIP.py8 def __init__(self, framework): argument
9 config.package.Package.__init__(self, framework)
11 self.minversion = '5.0.0'
13 self.versionname = 'ROCM_VERSION_MAJOR.ROCM_VERSION_MINOR.ROCM_VERSION_PATCH'
14 self.versioninclude = ['rocm-core/rocm_version.h', 'rocm_version.h']
15 self.requiresversion = 1
16 self.functions = ['hipInit']
17 self.includes = ['hip/hip_runtime.h']
18 self.includedir = ['include']
20self.liblist = [['libhipsparse.a','libhipblas.a','libhipsolver.a','librocsparse.a','libro…
[all …]
H A Degads.py5 def __init__(self, framework): argument
6 config.package.GNUPackage.__init__(self, framework)
7 self.gitcommit = 'ee0890bb2ce96bdd878fc2b628602640027eaa85'
8 self.download = ['git://https://github.com/bldenton/EGADSlite.git']
9 self.functions = ['EG_open']
10 self.includes = ['egads.h']
11 self.hastests = 1
12 self.buildLanguages = ['Cxx']
13 self.hasegadslite = 1
14 self.hasegads = 1
[all …]
H A DFEniCS-DOLFINx.py5 def __init__(self, framework): argument
6 config.package.CMakePackage.__init__(self, framework)
7 self.version = '0.9.0.post1'
8 self.gitcommit = 'v'+self.version
9 self.download = ['git://https://github.com/FEniCS/dolfinx/']
10 self.functions = []
11 self.includes = ['dolfinx/common/dolfinx_common.h']
12 self.liblist = [['libdolfinx.a']]
13 self.buildLanguages = ['Cxx']
14 self.pkgname = 'dolfinx'
[all …]
H A DSTRUMPACK.py5 def __init__(self, framework): argument
6 config.package.CMakePackage.__init__(self, framework)
7 self.version = '8.0.0'
8self.versionname = 'STRUMPACK_VERSION_MAJOR.STRUMPACK_VERSION_MINOR.STRUMPACK_VERSION_PATCH'
9 self.versioninclude = 'StrumpackConfig.hpp'
10 self.gitcommit = 'v'+self.version
11self.download = ['git://https://github.com/pghysels/STRUMPACK','https://github.com/pghysel…
12 self.functionsCxx = [1,'STRUMPACK_init','']
13 self.includes = ['StrumpackSparseSolver.h']
14 self.liblist = [['libstrumpack.a']]
[all …]
H A Dkokkos.py7 def __init__(self, framework): argument
8 config.package.CMakePackage.__init__(self, framework)
9 self.gitcommit = '5.0.2'
10 self.minversion = '4.3.00'
11 self.versionname = 'KOKKOS_VERSION'
12self.download = ['git://https://github.com/kokkos/kokkos.git','https://github.com/kokkos/k…
13 self.downloaddirnames = ['kokkos']
14self.excludedDirs = ['kokkos-kernels'] # Do not wrongly think kokkos-kernels as kokkos-vernum
15 self.includes = ['Kokkos_Macros.hpp']
16 self.liblist = [['libkokkoscontainers.a','libkokkoscore.a','libkokkossimd.a'],
[all …]
H A DMUMPS.py4 def __init__(self, framework): argument
5 config.package.Package.__init__(self, framework)
6 self.version = '5.8.2'
7 self.minversion = '5.2.1'
8 self.versionname = 'MUMPS_VERSION'
9 self.requiresversion = 1
10 self.gitcommit = 'v'+self.version
11 self.download = ['https://mumps-solver.org/MUMPS_'+self.version+'.tar.gz',
12 … 'https://web.cels.anl.gov/projects/petsc/download/externalpackages/MUMPS_'+self.version+'.tar.gz']
13 self.downloaddirnames = ['petsc-pkg-mumps','MUMPS']
[all …]
H A DTrilinos.py5 def __init__(self, framework): argument
6 config.package.CMakePackage.__init__(self, framework)
7self.gitcommit = 'fab6197820' # xsdk-0.2.0 + superlu_dist-5.4.0, superlu_dist-6.0.1 fix oc…
9self.download = ['git://https://github.com/balay/trilinos','https://github.com/balay/trili…
10 self.downloaddirnames = ['trilinos']
11 self.includes = ['Trilinos_version.h']
12 self.functions = ['Zoltan_Create'] # one of the very few C routines in Trilinos
13 self.buildLanguages = ['Cxx']
14 self.hastests = 1
15 self.requiresrpath = 1
[all …]
H A Dhypre.py5 def __init__(self, framework): argument
6 config.package.GNUPackage.__init__(self, framework)
7 self.version = '3.1.0'
8 self.minversion = '2.14'
9 self.versionname = 'HYPRE_RELEASE_VERSION'
10 self.versioninclude = 'HYPRE_config.h'
11 self.requiresversion = 1
13self.gitcommit = 'b2a805ffd0e321e1d78882c62eade880dd6f3ae7' #v3.1.0 + fixes from https://git…
14self.download = ['git://https://github.com/hypre-space/hypre','https://github.com/hypre-spa…
15 self.functions = ['HYPRE_IJMatrixCreate']
[all …]
H A DCUDA.py5 def __init__(self, framework): argument
6 config.package.Package.__init__(self, framework)
7 self.minversion = '7.5'
8 self.versionname = 'CUDA_VERSION'
9 self.versioninclude = 'cuda.h'
10 self.requiresversion = 1
11 self.functions = ['cublasInit','cufftDestroy','nvmlInit_v2']
12self.includes = ['cublas.h','cufft.h','cusparse.h','cusolverDn.h','curand.h','thrust/vers…
13 self.basicliblist = [['libcudart.a','libnvtx3interop.a'],['libcudart.a','libnvToolsExt.a']]
14self.mathliblist = [['libcufft.a', 'libcublas.a','libcusparse.a','libcusolver.a','libcurand.…
[all …]
H A Dh2opus.py4 def __init__(self, framework): argument
5 config.package.Package.__init__(self, framework)
6 self.gitcommit = 'c75d74cc96d728c11b7bf0f291ba71dc369a89f4' # Thu Apr 28, 2022
7self.download = ['git://https://github.com/ecrc/h2opus','https://github.com/ecrc/h2o…
8 self.precisions = ['single','double']
9 self.skippackagewithoptions = 1
10 self.buildLanguages = ['Cxx']
11 self.minCxxVersion = 'c++14'
12 self.liblist = [['libh2opus.a']]
13 self.includes = ['h2opusconf.h']
[all …]
H A DMPICH.py5 def __init__(self, framework): argument
6 config.package.GNUPackage.__init__(self, framework)
7 self.version = '5.0.0'
8self.download = ['https://github.com/pmodels/mpich/releases/download/v'+self.version+'/mpi…
9 …'https://www.mpich.org/static/downloads/'+self.version+'/mpich-'+self.version+'.tar.gz', # does no…
10 …ttps://web.cels.anl.gov/projects/petsc/download/externalpackages'+'/mpich-'+self.version+'.tar.gz']
11 self.download_git = ['git://https://github.com/pmodels/mpich.git']
12 self.versionname = 'MPICH_NUMVERSION'
13 self.includes = ['mpi.h']
14 self.gitsubmodules = ['.']
[all …]
/petsc/config/PETSc/
H A DConfigure.py9 def __init__(self, framework): argument
10 config.base.Configure.__init__(self, framework)
11 self.headerPrefix = 'PETSC'
12 self.substPrefix = 'PETSC'
13self.installed = 0 # 1 indicates that Configure itself has already compiled and installed PETSc
14 self.found = 1
17 def __str2__(self): argument
20 desc = [' Using GNU make: ' + self.make.make]
21 if self.defines.get('USE_COVERAGE'):
24 ' Using code coverage executable: {}'.format(self.getMakeMacro('PETSC_COVERAGE_EXEC'))
[all …]
H A Dpetsc.py34 def __init__(self, framework): argument
35 config.base.Configure.__init__(self, framework)
36 self.headerPrefix = ''
37 self.substPrefix = ''
38 self.location = None
39 self.trial = {}
40 self.working = {}
43 def __str__(self): argument
44 if self.found:
46 desc.append(' Type: '+self.name)
[all …]
/petsc/config/BuildSystem/config/utilities/
H A Dmissing.py5 def __init__(self, framework): argument
6 config.base.Configure.__init__(self, framework)
7 self.headerPrefix = ''
8 self.substPrefix = ''
11 def __str__(self): argument
14 def setupHelp(self, help): argument
18 def setupDependencies(self, framework): argument
19 config.base.Configure.setupDependencies(self, framework)
20 self.compilers = framework.require('config.compilers', self)
21 self.functions = framework.require('config.functions', self)
[all …]
/petsc/src/binding/petsc4py/test/
H A Dtest_object.py14 def setUp(self): argument
15 self.obj = self.CLASS()
16 getattr(self.obj, self.FACTORY)(*self.TARGS, **self.KARGS)
17 if not self.obj:
18 self.obj.create()
20 def tearDown(self): argument
21 self.obj = None
24 def testTypeRegistry(self): argument
26 classid = self.obj.getClassId()
27 typeobj = self.CLASS
[all …]
H A Dtest_pc_py.py11 def setup(self, pc): argument
14 def reset(self, pc): argument
17 def apply(self, pc, x, y): argument
20 def applyT(self, pc, x, y): argument
21 self.apply(pc, x, y)
23 def applyS(self, pc, x, y): argument
24 self.apply(pc, x, y)
26 def applySL(self, pc, x, y): argument
27 self.applyS(pc, x, y)
29 def applySR(self, pc, x, y): argument
[all …]

12345678910>>...22