| /petsc/src/ts/tutorials/power_grid/ |
| H A D | ex9opt.c | 98 static PetscErrorCode RHSJacobianP(TS ts, PetscReal t, Vec X, Mat A, PetscCtx ctx0) in RHSJacobianP() argument 102 AppCtx *ctx = (AppCtx *)ctx0; in RHSJacobianP() 342 PetscErrorCode FormFunction(Tao tao, Vec P, PetscReal *f, PetscCtx ctx0) in FormFunction() argument 344 AppCtx *ctx = (AppCtx *)ctx0; in FormFunction() 386 PetscErrorCode FormGradient(Tao tao, Vec P, Vec G, PetscCtx ctx0) in FormGradient() argument 388 AppCtx *ctx = (AppCtx *)ctx0; in FormGradient()
|
| H A D | ex3opt_fd.c | 159 PetscErrorCode FormFunction(Tao tao, Vec P, PetscReal *f, PetscCtx ctx0) in FormFunction() argument 161 AppCtx *ctx = (AppCtx *)ctx0; in FormFunction()
|
| H A D | ex3.h | 154 PetscErrorCode RHSJacobianP(TS ts, PetscReal t, Vec X, Mat A, PetscCtx ctx0) in RHSJacobianP() argument 158 AppCtx *ctx = (AppCtx *)ctx0; in RHSJacobianP()
|
| H A D | ex3opt.c | 237 PetscErrorCode FormFunctionGradient(Tao tao, Vec P, PetscReal *f, Vec G, PetscCtx ctx0) in FormFunctionGradient() argument 239 AppCtx *ctx = (AppCtx *)ctx0; in FormFunctionGradient()
|
| H A D | ex9adj.c | 108 static PetscErrorCode RHSJacobianP(TS ts, PetscReal t, Vec X, Mat A, PetscCtx ctx0) in RHSJacobianP() argument 112 AppCtx *ctx = (AppCtx *)ctx0; in RHSJacobianP()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscvec.pxi | 464 cdef object ctx0 = self.get_attr('__dltensor_ctx__') 473 if ctx0 is None: # First time in, create a linear memory view 480 (_, _, ndim, s1, s2) = ctx0 487 ctx0 = (dtype, devId, ndim, s1, s2) 488 self.set_attr('__dltensor_ctx__', ctx0) 489 return ctx0
|
| H A D | petscmat.pxi | 1226 cdef object ctx0 = self.get_attr('__dltensor_ctx__') 1235 if ctx0 is None: # First time in, create a linear memory view 1246 (_, _, ndim, s1, s2) = ctx0 1253 ctx0 = (dtype, devId, ndim, s1, s2) 1254 self.set_attr('__dltensor_ctx__', ctx0) 1255 return ctx0
|
| H A D | Vec.pyx | 1700 cdef object ctx0 = self.get_attr('__dltensor_ctx__') 1701 if ctx0 is not None: 1702 vec.set_attr('__dltensor_ctx__', ctx0)
|
| /petsc/src/ts/tutorials/hybrid/ |
| H A D | ex1fd.c | 322 PetscErrorCode FWDRun(TS ts, Vec U0, PetscCtx ctx0) in FWDRun() argument 325 AppCtx *ctx = (AppCtx *)ctx0; in FWDRun()
|
| /petsc/src/ts/tutorials/power_grid/stability_9bus/ |
| H A D | ex9busoptfd.c | 798 static PetscErrorCode MonitorUpdateQ(TS ts, PetscInt stepnum, PetscReal time, Vec X, PetscCtx ctx0) in MonitorUpdateQ() argument 803 Userctx *ctx = (Userctx *)ctx0; in MonitorUpdateQ() 972 PetscErrorCode FormFunction(Tao tao, Vec P, PetscReal *f, PetscCtx ctx0) in FormFunction() argument 976 Userctx *ctx = (Userctx *)ctx0; in FormFunction()
|
| H A D | ex9busopt.c | 911 static PetscErrorCode RHSJacobianP(TS ts, PetscReal t, Vec X, Mat A, PetscCtx ctx0) in RHSJacobianP() argument 915 Userctx *ctx = (Userctx *)ctx0; in RHSJacobianP() 1220 PetscErrorCode FormFunctionGradient(Tao tao, Vec P, PetscReal *f, Vec G, PetscCtx ctx0) in FormFunctionGradient() argument 1224 Userctx *ctx = (Userctx *)ctx0; in FormFunctionGradient()
|