Home
last modified time | relevance | path

Searched refs:ctx0 (Results 1 – 11 of 11) sorted by relevance

/petsc/src/ts/tutorials/power_grid/
H A Dex9opt.c98 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 Dex3opt_fd.c159 PetscErrorCode FormFunction(Tao tao, Vec P, PetscReal *f, PetscCtx ctx0) in FormFunction() argument
161 AppCtx *ctx = (AppCtx *)ctx0; in FormFunction()
H A Dex3.h154 PetscErrorCode RHSJacobianP(TS ts, PetscReal t, Vec X, Mat A, PetscCtx ctx0) in RHSJacobianP() argument
158 AppCtx *ctx = (AppCtx *)ctx0; in RHSJacobianP()
H A Dex3opt.c237 PetscErrorCode FormFunctionGradient(Tao tao, Vec P, PetscReal *f, Vec G, PetscCtx ctx0) in FormFunctionGradient() argument
239 AppCtx *ctx = (AppCtx *)ctx0; in FormFunctionGradient()
H A Dex9adj.c108 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 Dpetscvec.pxi464 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 Dpetscmat.pxi1226 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 DVec.pyx1700 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 Dex1fd.c322 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 Dex9busoptfd.c798 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 Dex9busopt.c911 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()