| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | CAPI.pyx | 26 cdef Comm ob = <Comm?> arg 27 retv = ob.comm 32 cdef Comm ob = <Comm?> arg 33 retv = &ob.comm 45 cdef Object ob = <Object?> arg 46 retv = ob.obj[0] 51 cdef Object ob = <Object?> arg 52 retv = ob.obj 64 cdef Viewer ob = <Viewer?> arg 65 retv = ob.vwr [all …]
|
| H A D | arraynpy.pxi | 72 cdef inline ndarray asarray(object ob): argument 73 return PyArray_FROM_O(ob) 137 cdef inline ndarray iarray(object ob, int typenum): argument 139 ob, typenum, NPY_ARRAY_ALIGNED|NPY_ARRAY_NOTSWAPPED) 144 cdef inline ndarray iarray_i(object ob, PetscInt* size, PetscInt** data): argument 145 cdef ndarray ary = iarray(ob, NPY_PETSC_INT) 150 cdef inline ndarray iarray_r(object ob, PetscInt* size, PetscReal** data): argument 151 cdef ndarray ary = iarray(ob, NPY_PETSC_REAL) 156 cdef inline ndarray iarray_b(object ob, PetscInt* size, PetscBool** data): argument 157 cdef ndarray ary = iarray(ob, NPY_PETSC_BOOL) [all …]
|
| H A D | petscis.pxi | 101 cdef IS ob = <IS> IS() 102 ob.iset = iset 103 CHKERR(PetscINCREF(ob.obj)) 104 return ob 107 cdef LGMap ob = <LGMap> LGMap() 108 ob.lgm = lgm 109 CHKERR(PetscINCREF(ob.obj)) 110 return ob
|
| H A D | petscmpi.pxi | 110 cdef Comm ob = <Comm> Comm() 111 ob.comm = comm 112 return ob
|
| H A D | petscksp.pxi | 244 cdef KSP ob = <KSP> KSP() 245 ob.ksp = ksp 246 CHKERR(PetscINCREF(ob.obj)) 247 return ob
|
| H A D | petscdm.pxi | 273 cdef DM ob = <DM> DM() 274 ob.dm = dm 275 CHKERR(PetscINCREF(ob.obj)) 276 return ob
|
| H A D | petsctao.pxi | 267 cdef TAO ob = <TAO> TAO() 268 ob.tao = tao 269 CHKERR(PetscINCREF(ob.obj)) 270 return ob 573 cdef TAOLineSearch ob = <TAOLineSearch> TAOLineSearch() 574 ob.taols = taols 575 CHKERR(PetscINCREF(ob.obj)) 576 return ob
|
| H A D | libpetsc4py.pyx | 99 cdef Viewer ob = Viewer.__new__(Viewer) 100 ob.obj[0] = newRef(p) 101 return ob 104 cdef IS ob = IS.__new__(IS) 105 ob.obj[0] = newRef(p) 106 return ob 109 cdef Vec ob = Vec.__new__(Vec) 110 ob.obj[0] = newRef(p) 111 return ob 114 cdef Mat ob = Mat.__new__(Mat) [all …]
|
| H A D | petscobj.pxi | 114 cdef inline void Py_DecRef(PyObject *ob) noexcept with gil: argument 115 _Py_DecRef(ob)
|
| H A D | petscpc.pxi | 368 cdef PC ob = <PC> PC() 369 ob.pc = pc 370 CHKERR(PetscINCREF(ob.obj)) 371 return ob
|
| H A D | petscsnes.pxi | 296 cdef SNES ob = <SNES> SNES() 297 ob.snes = snes 298 CHKERR(PetscINCREF(ob.obj)) 299 return ob
|
| H A D | petscts.pxi | 360 cdef TS ob = <TS> TS() 361 ob.ts = ts 362 CHKERR(PetscINCREF(ob.obj)) 363 return ob
|
| H A D | petscvec.pxi | 224 cdef Vec ob = <Vec> Vec() 225 ob.vec = vec 226 CHKERR(PetscINCREF(ob.obj)) 227 return ob
|
| H A D | petscmat.pxi | 562 cdef NullSpace ob = <NullSpace> NullSpace() 563 ob.nsp = nsp 564 CHKERR(PetscINCREF(ob.obj)) 565 return ob 581 cdef Mat ob = <Mat> Mat() 582 ob.mat = mat 583 CHKERR(PetscINCREF(ob.obj)) 584 return ob
|
| /petsc/src/snes/interface/ |
| H A D | snesob.c | 85 PetscErrorCode SNESComputeObjective(SNES snes, Vec X, PetscReal *ob) in SNESComputeObjective() argument 93 PetscAssertPointer(ob, 3); in SNESComputeObjective() 98 PetscCall(sdm->ops->computeobjective(snes, X, ob, sdm->objectivectx)); in SNESComputeObjective() 104 *ob -= PetscRealPart(dot); in SNESComputeObjective() 144 PetscReal ob, ob1, ob2, ob3, fob, dx, eps = 1e-6; in SNESObjectiveComputeFunctionDefaultFD() local 158 PetscCall(SNESComputeObjective(snes, X, &ob)); in SNESObjectiveComputeFunctionDefaultFD() 196 fv = (-ob2 + 6. * ob1 - 3. * ob - 2. * ob3) / (6. * dx); in SNESObjectiveComputeFunctionDefaultFD()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex20opt_ic.c | 30 PetscReal ob[2]; /* observation used by the cost function */ member 223 … = (x_ptr[0] - user_ptr->ob[0]) * (x_ptr[0] - user_ptr->ob[0]) + (x_ptr[1] - user_ptr->ob[1]) … in FormFunctionGradient() 224 y_ptr[0] = 2. * (x_ptr[0] - user_ptr->ob[0]); in FormFunctionGradient() 225 y_ptr[1] = 2. * (x_ptr[1] - user_ptr->ob[1]); in FormFunctionGradient() 305 y_ptr[0] = 2. * (x_ptr[0] - ctx->ob[0]); in Adjoint2() 306 y_ptr[1] = 2. * (x_ptr[1] - ctx->ob[1]); in Adjoint2() 468 user.ob[0] = x_ptr[0]; in main() 469 user.ob[1] = x_ptr[1]; in main()
|
| H A D | ex20opt_p.c | 33 PetscReal ob[2]; /* observation used by the cost function */ member 450 user.ob[0] = y_ptr[0]; in main() 451 user.ob[1] = y_ptr[1]; in main() 549 …*f = (y_ptr[0] - user_ptr->ob[0]) * (y_ptr[0] - user_ptr->ob[0]) + (y_ptr[1] - user_ptr->ob[1]) * … in FormFunctionGradient() 553 x_ptr[0] = 2. * (y_ptr[0] - user_ptr->ob[0]); in FormFunctionGradient() 554 x_ptr[1] = 2. * (y_ptr[1] - user_ptr->ob[1]); in FormFunctionGradient() 639 y_ptr[0] = 2. * (z_ptr[0] - ctx->ob[0]); in Adjoint2() 640 y_ptr[1] = 2. * (z_ptr[1] - ctx->ob[1]); in Adjoint2()
|
| /petsc/src/snes/utils/ |
| H A D | dmdasnes.c | 116 static PetscErrorCode SNESComputeObjective_DMDA(SNES snes, Vec X, PetscReal *ob, PetscCtx ctx) in SNESComputeObjective_DMDA() argument 127 PetscAssertPointer(ob, 3); in SNESComputeObjective_DMDA() 135 …lBack("SNES DMDA local callback objective", (*dmdasnes->objectivelocalvec)(&info, Xloc, ob, octx)); in SNESComputeObjective_DMDA() 138 …PetscCallBack("SNES DMDA local callback objective", (*dmdasnes->objectivelocal)(&info, x, ob, octx… in SNESComputeObjective_DMDA() 142 …PetscCallMPI(MPIU_Allreduce(MPI_IN_PLACE, ob, 1, MPIU_REAL, MPIU_SUM, PetscObjectComm((PetscObject… in SNESComputeObjective_DMDA()
|
| /petsc/include/petsc/finclude/ |
| H A D | petscsysbase.h | 170 #define PetscObjectSpecificCast(sp,ob) sp%v = ob%v argument
|
| /petsc/src/binding/petsc4py/src/petsc4py/include/petsc4py/ |
| H A D | petsc4py.i | 479 %define_as(Py##Pkg##PyType##_GetPtr(ob), (Type *)PyPetscObject_GetPtr(ob))
|