Home
last modified time | relevance | path

Searched refs:python (Results 1 – 25 of 66) sorted by relevance

123

/petsc/src/binding/petsc4py/docs/source/
H A Dinstall.rst11 $ python -m pip install petsc petsc4py
20 $ python -m pip install src/binding/petsc4py
25 $ PETSC_ARCH='arch-0:...:arch-N' python -m pip install src/binding/petsc4py
40 $ python test/runtests.py
48 $ python test/runtests.py -k test_optdb
54 $ python test/runtests.py --help
60 $ mpiexec -n 4 python test/runtests.py
71 $ python -m pip install -r src/binding/petsc4py/conf/requirements-docs.txt
H A Dpetsc_options.rst12 .. code-block:: python
25 $ python foo.py -ksp_type gmres -ksp_gmres_restart 100 -ksp_view
31 $ PETSC_OPTIONS='-ksp_type gmres -ksp_gmres_restart 100 -ksp_view' python foo.py
35 .. code-block:: python
46 $ python foo.py -n 50 -alpha 8.8
52 .. code-block:: python
H A Dpetsc_python_types.rst55 $ python mat.py -pc_type python -pc_python_type pc.myJacobi -ksp_view
63 type: python
67 type: python
116 .. code-block:: python
124 python tao.py -tao_type python -tao_python_type tao.myGradientDescent
H A Dcontributing.rst12 $ python -m pip install -r src/binding/petsc4py/conf/requirements-lint.txt
30 `unittest <https://docs.python.org/3/library/unittest.html>`_
36 $ python test/runtests.py -k test_xxx
42 $ python test/runtests.py -k test_xxx.class_name.method_name
H A Dlinks.txt7 .. _Python: https://www.python.org
/petsc/config/BuildSystem/config/packages/
H A Dpetsc4py.py32 self.python = framework.require('config.packages.Python',self)
86 …newdir + archflags + cflags + ' PYTHONPATH=${PETSCPYTHONPATH} ' + self.python.pyexe + ' setup.py b…
87 …'MPICC=${PCC} ' + newdir + archflags + self.python.pyexe +' setup.py install --install-lib=' + ins…
97 …tensity 0 -error_output_stdout -malloc_dump ${PETSC_TEST_OPTIONS}', self.python.pyexe, os.path.joi…
99 self.python.path.add(installLibPath)
113 if not getattr(self.python,pkg): npkgs.append(pkg)
117 …'or with "pip" using: %s -m pip install %s' % (" ".join(npkgs), self.python.pyexe, " ".join(npkgs)…
H A Dmpi4py.py19 self.python = framework.require('config.packages.Python',self)
54 …cleancmd = 'MPICC='+self.framework.getCompiler()+' '+archflags+self.python.pyexe+' setup.py clean…
65 …buildcmd = 'MPICC='+self.framework.getCompiler()+' '+archflags+cflags+self.python.pyexe+' setup.p…
70 …installcmd = 'MPICC='+self.framework.getCompiler()+' '+self.python.pyexe+' setup.py install --inst…
80 if not getattr(self.python,'numpy'):
83 'or using: %s -m pip install %s' % (self.python.pyexe, 'numpy'))
101 self.python.path.add(installLibPath)
H A Dslepc4py.py30 self.python = framework.require('config.packages.Python',self)
91 …PATH=${PETSCPYTHONPATH} SLEPC_DIR=' + self.slepc.installDir + ' ' + self.python.pyexe + ' setup.py…
92 …PATH=${PETSCPYTHONPATH} SLEPC_DIR=' + self.slepc.installDir + ' ' + self.python.pyexe +' setup.py …
94 …tensity 0 -error_output_stdout -malloc_dump ${PETSC_TEST_OPTIONS}', self.python.pyexe, os.path.joi…
97 self.python.path.add(installLibPath)
H A DBAMG.py16 self.python = framework.require('config.packages.Python',self)
45 …self.addPost(self.packageDir,[carg + self.python.pyexe + ' ./configure --prefix=' + prefix + ' --w…
H A DFEniCS-DOLFINx.py34 self.python = framework.require('config.packages.Python',self)
125 …'cd ../../python && ' + ccarg + ' ' + ppath + ' ' + dpath + ' ' + self.python.pyexe + ' -m pip i…
128 self.python.path.add(os.path.join(self.installDir,'lib'))
H A DSLEPc.py25 self.python = framework.require('config.packages.Python',self)
75 …self.addPost(self.packageDir,[carg + ' ' + self.python.pyexe + ' ./configure --prefix=' + prefix +…
H A DMPICH.py26 self.python = framework.require('config.packages.Python',self)
105 args.append('PYTHON='+self.python.pyexe)
/petsc/src/binding/petsc4py/
H A Dmakefile9 PYTHON = python$(py)
70 . petsc4py-lint-env/bin/activate && python -m pip install -r conf/requirements-lint.txt
77 . petsc4py-docs-env/bin/activate && python -m pip install -r conf/requirements-docs.txt
78 . petsc4py-docs-env/bin/activate && CFLAGS=-O0 python -m pip install .
82 python -m pip install .
83 python conf/stubgen.py
86python -m mypy.stubtest petsc4py --ignore-missing-stub --allowlist conf/stubtest-allowlist --ignor…
94 . petsc4py-stubtest-env/bin/activate && python -m pip install -r conf/requirements-stubtest.txt
154 CFLAGS=-O0 python -m pip install .
/petsc/src/binding/petsc4py/demo/legacy/bratu2d/
H A Dmakefile4 PYTHON=python
23 ${MPIEXEC} ${PYTHON} bratu2d.py -impl python
/petsc/src/binding/petsc4py/demo/legacy/wrap-f2py/
H A DBratu2D.pyf3 python module Bratu2D
39 end python module Bratu2D
/petsc/src/binding/petsc4py/demo/legacy/perftest/
H A DApp.pyf3 python module App
25 end python module App
H A Dmakefile4 PYTHON=python
/petsc/src/sys/error/
H A Derrtrace.c197 PetscBool python = (n == PETSC_ERR_PYTHON && cnt == 1) ? PETSC_TRUE : PETSC_FALSE; in PetscTraceBackErrorHandler() local
199 if (p == PETSC_ERROR_INITIAL || python) { in PetscTraceBackErrorHandler()
220 if (python) (void)PetscPythonPrintError(); in PetscTraceBackErrorHandler()
/petsc/src/binding/petsc4py/conf/
H A Dcythonize.sh4 python"${py:=}" "$topdir/conf/cythonize.py" \
/petsc/lib/petsc/bin/maint/
H A Dvalidate-petsc4py.sh13 PYTHON=python
/petsc/src/binding/petsc4py/demo/legacy/poisson2d/
H A Dmakefile4 PYTHON=python
/petsc/src/binding/petsc4py/demo/legacy/binary-io/
H A Dmakefile4 PYTHON=python
/petsc/src/binding/petsc4py/demo/legacy/kspsolve/
H A Dmakefile4 PYTHON=python
/petsc/src/binding/petsc4py/demo/legacy/bratu3d/
H A Dmakefile4 PYTHON=python
/petsc/src/binding/petsc4py/src/petsc4py/
H A DPETSc.pyx3 # cython: embedsignature.format=python

123