Lines Matching refs:matctx
48 AdolcMatCtx matctx; /* Matrix (free) context */ in main() local
64 PetscCall(PetscLogEventRegister("df/dx forward", MAT_CLASSID, &matctx.event1)); in main()
65 PetscCall(PetscLogEventRegister("df/d(xdot) forward", MAT_CLASSID, &matctx.event2)); in main()
66 PetscCall(PetscLogEventRegister("df/dx reverse", MAT_CLASSID, &matctx.event3)); in main()
67 PetscCall(PetscLogEventRegister("df/d(xdot) reverse", MAT_CLASSID, &matctx.event4)); in main()
90 PetscCall(MatShellSetContext(A, &matctx)); in main()
93 PetscCall(VecDuplicate(x, &matctx.X)); in main()
94 PetscCall(VecDuplicate(x, &matctx.Xdot)); in main()
95 PetscCall(DMGetLocalVector(da, &matctx.localX0)); in main()
110 matctx.m = 2 * gxm * gym; in main()
111 matctx.n = 2 * gxm * gym; /* Number of dependent and independent variables */ in main()
112 matctx.flg = PETSC_FALSE; /* Flag for reverse mode */ in main()
113 matctx.tag1 = 1; /* Tape identifier */ in main()
119 PetscCall(IFunctionActive(ts, 1., x, matctx.Xdot, r, &appctx)); in main()
169 PetscCall(DMRestoreLocalVector(da, &matctx.localX0)); in main()
171 PetscCall(VecDestroy(&matctx.X)); in main()
172 PetscCall(VecDestroy(&matctx.Xdot)); in main()