Home
last modified time | relevance | path

Searched refs:create (Results 1 – 25 of 188) sorted by relevance

12345678

/petsc/src/binding/petsc4py/src/petsc4py/
H A D__main__.py45 vec = PETSc.Vec().create(comm=COMM)
50 mat = PETSc.Mat().create(comm=COMM)
55 pc = PETSc.PC().create(comm=COMM)
59 ksp = PETSc.KSP().create(comm=COMM)
63 snes = PETSc.SNES().create(comm=COMM)
67 ts = PETSc.TS().create(comm=COMM)
71 tao = PETSc.TAO().create(comm=COMM)
75 dmda = PETSc.DMDA().create(comm=COMM)
79 dmplex = PETSc.DMPlex().create(comm=COMM)
/petsc/src/binding/petsc4py/test/
H A Dtest_dmshell.py10 self.dm = PETSc.DMShell().create(comm=self.COMM)
18 vec = PETSc.Vec().create(comm=self.COMM)
28 v = PETSc.Vec().create(comm=dm.comm)
39 vec = PETSc.Vec().create(comm=PETSc.COMM_SELF)
51 v = PETSc.Vec().create(comm=PETSc.COMM_SELF)
64 mat = PETSc.Mat().create(comm=self.COMM)
74 mat = PETSc.Mat().create(comm=self.COMM)
135 vec = PETSc.Vec().create(comm=self.COMM)
139 ovec = PETSc.Vec().create(comm=PETSc.COMM_SELF)
158 vec = PETSc.Vec().create(comm=PETSc.COMM_SELF)
[all …]
H A Dtest_tao.py56 self.tao = PETSc.TAO().create(comm=self.COMM)
105 x = PETSc.Vec().create(tao.getComm())
108 c = PETSc.Vec().create(tao.getComm())
111 J = PETSc.Mat().create(tao.getComm())
146 x = PETSc.Vec().create(tao.getComm())
149 c = PETSc.Vec().create(tao.getComm())
152 J = PETSc.Mat().create(tao.getComm())
187 x = PETSc.Vec().create(tao.getComm())
190 xl = PETSc.Vec().create(tao.getComm())
194 xu = PETSc.Vec().create(tao.getComm())
[all …]
H A Dtest_mat_schur.py9 A00 = PETSc.Mat().create(comm=COMM)
12 A01 = PETSc.Mat().create(comm=COMM)
15 A10 = PETSc.Mat().create(comm=COMM)
18 A11 = PETSc.Mat().create(comm=COMM)
H A Dtest_device.py23 device = PETSc.Device.create()
30 dctx = PETSc.DeviceContext().create()
50 dctx = PETSc.DeviceContext().create()
72 dctx = PETSc.DeviceContext().create()
77 dctx2 = PETSc.DeviceContext().create()
H A Dtest_viewer_py.py46 self.viewer.create(PETSc.COMM_SELF)
74 v = PETSc.Vec().create(PETSc.COMM_SELF)
77 v = PETSc.KSP().create(PETSc.COMM_SELF)
80 v = PETSc.DM().create(PETSc.COMM_SELF)
H A Dtest_snes.py52 snes.create(PETSc.COMM_SELF)
165 J = PETSc.Mat().create(PETSc.COMM_SELF)
186 J = PETSc.Mat().create(PETSc.COMM_SELF)
228 J = PETSc.Mat().create(PETSc.COMM_SELF)
358 J = PETSc.Mat().create(PETSc.COMM_SELF)
383 J = PETSc.Mat().create(PETSc.COMM_SELF)
456 ls.create()
460 ls = PETSc.SNESLineSearch().create()
467 ls = PETSc.SNESLineSearch().create()
479 ls = PETSc.SNESLineSearch().create()
[all …]
/petsc/src/binding/petsc4py/demo/hpddm/
H A Dsaddle_point.py55 A[0] = PETSc.Mat().create(comm = PETSc.COMM_WORLD)
57 aux_IS[0] = PETSc.IS().create(comm = PETSc.COMM_SELF)
58 aux_Mat[0] = PETSc.Mat().create(comm = PETSc.COMM_SELF)
59 A[3] = PETSc.Mat().create(comm = PETSc.COMM_WORLD)
61 aux_IS[1] = PETSc.IS().create(comm = PETSc.COMM_SELF)
62 aux_Mat[1] = PETSc.Mat().create(comm = PETSc.COMM_SELF)
74 A[2] = PETSc.Mat().create(comm = PETSc.COMM_WORLD)
89 ksp = PETSc.KSP().create(comm = PETSc.COMM_WORLD)
H A Dhpddm.py30 A = PETSc.Mat().create()
46 ksp = PETSc.KSP(PETSc.COMM_WORLD).create()
/petsc/src/binding/petsc4py/demo/regressor/
H A Dtest_regressor.py25 X = PETSc.Mat().create(comm=comm)
30 y = PETSc.Vec().create(comm=comm)
45 regressor = PETSc.Regressor().create(comm=comm)
H A Dtest_regressor_synthetic.py50 regressor = PETSc.Regressor().create(comm=comm)
54 X = PETSc.Mat().create(comm=comm)
58 y = PETSc.Vec().create(comm=comm)
70 X = PETSc.Mat().create(comm=comm)
74 y = PETSc.Vec().create(comm=comm)
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDMShell.pyx4 def create(self, comm: Comm | None = None) -> Self: member in DMShell
81 """Set the routine to create a global vector.
113 """Set the routine to create a local vector.
341 """Set the routine to create a matrix.
348 The function to create a matrix.
437 """Set the routine used to create the interpolation operator.
444 The routine to create the interpolation.
469 """Set the routine used to create the injection operator.
476 The routine to create the injection.
501 """Set the routine used to create the restriction operator.
[all …]
H A DDevice.pyx26 Device, Device.create, Device.getDeviceType, Device.type, petsc.PetscDeviceType
95 def create(cls, dtype: Type | None = None, device_id: int = DECIDE) -> Device: member in Device
103 The type of device to create (or `None` for the default).
106 The numeric id of the device to create.
127 create, petsc.PetscDeviceDestroy
139 create, petsc.PetscDeviceConfigure
187 create, petsc.PetscDeviceGetDeviceId
197 """Set the device type to be used as the default in subsequent calls to `create`.
203 create, petsc.PetscDeviceSetDefaultDeviceType
240 def create(self) -> Self: member in DeviceContext
[all …]
/petsc/src/binding/petsc4py/demo/legacy/petsc-examples/ksp/
H A Dex23.py41 x = PETSc.Vec().create(comm=comm)
69 A = PETSc.Mat().create(comm=comm)
120 ksp = PETSc.KSP().create()
H A Dex2.py50 A = PETSc.Mat().create(comm=comm)
126 u = PETSc.Vec().create(comm=comm)
151 ksp = PETSc.KSP().create(comm=comm)
/petsc/src/binding/petsc4py/demo/python_types/
H A Dtao.py5 def create(self, tao): member in myGradientDescent
7 self._ls = PETSc.TAOLineSearch().create(comm=PETSc.COMM_SELF)
H A Dmat.py103 da = PETSc.DMDA().create([nx, ny], stencil_width=1)
113 A = PETSc.Mat().create(comm=da.comm)
120 ksp = PETSc.KSP().create()
/petsc/src/binding/petsc4py/demo/legacy/taosolve/
H A Dchwirut.py31 X = PETSc.Vec().create(PETSc.COMM_SELF)
33 F = PETSc.Vec().create(PETSc.COMM_SELF)
68 tao = PETSc.TAO().create(PETSc.COMM_SELF)
H A Drosenbrock.py96 x = PETSc.Vec().create(PETSc.COMM_SELF)
101 H = PETSc.Mat().create(PETSc.COMM_SELF)
114 tao = PETSc.TAO().create(PETSc.COMM_SELF)
/petsc/src/binding/petsc4py/demo/legacy/ode/
H A Dheat.py27 self.mat = PETSc.Mat().create(comm=comm)
36 lgmap = PETSc.LGMap().create(list(gindices), comm=comm)
41 self.lvec = PETSc.Vec().create(comm=PETSc.COMM_SELF)
46 self.g2l = PETSc.Scatter().create(self.gvec, isg, self.lvec, None)
123 ts = PETSc.TS().create(comm=ode.comm)
/petsc/src/sys/objects/device/impls/cupm/
H A Dcupmstream.hpp39 PetscErrorCode create(flag_type) noexcept;
68 inline PetscErrorCode CUPMStream<T>::create(flag_type flags) noexcept in create() function in Petsc::device::cupm::CUPMStream
101 PetscCall(create(preferred)); in change_type()
/petsc/src/vec/is/sf/interface/
H A Dsfregi.c78 PetscErrorCode PetscSFRegister(const char name[], PetscErrorCode (*create)(PetscSF)) in PetscSFRegister()
82 PetscCall(PetscFunctionListAdd(&PetscSFList, name, create)); in PetscSFRegister()
/petsc/src/binding/petsc4py/demo/legacy/poisson3d/
H A Dpoisson3d.py16 A = PETSc.Mat().create()
29 ksp = PETSc.KSP().create()
/petsc/src/ksp/ksp/tutorials/
H A Dex100.py11 A.create(comm=PETSc.COMM_WORLD)
21 ksp.create(comm=PETSc.COMM_WORLD)
/petsc/src/binding/petsc4py/demo/legacy/wrap-cython/
H A Drun_demo.py13 da = PETSc.DMDA().create([N, N, N], stencil_width=1)
16 snes = PETSc.SNES().create()

12345678