Lines Matching refs:h

61 static PetscErrorCode PetscLogHandlerEventBegin_Ex7(PetscLogHandler h, PetscLogEvent e, PetscObject…  in PetscLogHandlerEventBegin_Ex7()  argument
71 PetscCall(PetscLogHandlerGetState(h, &state)); in PetscLogHandlerEventBegin_Ex7()
75 ctx = (HandlerCtx)h->data; in PetscLogHandlerEventBegin_Ex7()
84 static PetscErrorCode PetscLogHandlerEventEnd_Ex7(PetscLogHandler h, PetscLogEvent e, PetscObject o… in PetscLogHandlerEventEnd_Ex7() argument
92 ctx = (HandlerCtx)h->data; in PetscLogHandlerEventEnd_Ex7()
93 PetscCall(PetscLogHandlerGetState(h, &state)); in PetscLogHandlerEventEnd_Ex7()
102 static PetscErrorCode PetscLogHandlerEventSync_Ex7(PetscLogHandler h, PetscLogEvent e, MPI_Comm com… in PetscLogHandlerEventSync_Ex7() argument
112 PetscCall(PetscLogHandlerGetState(h, &state)); in PetscLogHandlerEventSync_Ex7()
118 static PetscErrorCode PetscLogHandlerObjectCreate_Ex7(PetscLogHandler h, PetscObject obj) in PetscLogHandlerObjectCreate_Ex7() argument
123 ctx = (HandlerCtx)h->data; in PetscLogHandlerObjectCreate_Ex7()
128 static PetscErrorCode PetscLogHandlerObjectDestroy_Ex7(PetscLogHandler h, PetscObject obj) in PetscLogHandlerObjectDestroy_Ex7() argument
133 ctx = (HandlerCtx)h->data; in PetscLogHandlerObjectDestroy_Ex7()
138 static PetscErrorCode PetscLogHandlerStagePush_Ex7(PetscLogHandler h, PetscLogStage new_stage) in PetscLogHandlerStagePush_Ex7() argument
145 PetscCall(PetscLogHandlerGetState(h, &state)); in PetscLogHandlerStagePush_Ex7()
158 static PetscErrorCode PetscLogHandlerStagePop_Ex7(PetscLogHandler h, PetscLogStage old_stage) in PetscLogHandlerStagePop_Ex7() argument
165 PetscCall(PetscLogHandlerGetState(h, &state)); in PetscLogHandlerStagePop_Ex7()
179 static PetscErrorCode PetscLogHandlerView_Ex7(PetscLogHandler h, PetscViewer viewer) in PetscLogHandlerView_Ex7() argument
189 ctx = (HandlerCtx)h->data; in PetscLogHandlerView_Ex7()
198 static PetscErrorCode PetscLogHandlerLogObjectState_Ex7(PetscLogHandler h, PetscObject obj, const c… in PetscLogHandlerLogObjectState_Ex7() argument
210 static PetscErrorCode PetscLogHandlerDestroy_Ex7(PetscLogHandler h) in PetscLogHandlerDestroy_Ex7() argument
215 ctx = (HandlerCtx)h->data; in PetscLogHandlerDestroy_Ex7()
217 PetscCall(PetscObjectComposeFunction((PetscObject)h, "PetscLogHandlerLogObjectState_C", NULL)); in PetscLogHandlerDestroy_Ex7()
247 PetscLogHandler h; in main() local
254 PetscCall(PetscLogHandlerCreate(PETSC_COMM_WORLD, &h)); in main()
255 PetscCall(PetscLogHandlerSetType(h, PETSCLOGHANDLEREX7)); in main()
256 PetscCall(PetscLogHandlerGetType(h, &type)); in main()
258 PetscCall(PetscLogHandlerStart(h)); in main()
273 PetscCall(PetscLogHandlerLogObjectState(h, (PetscObject)user_object, "Created at %e", time)); in main()
280 PetscCall(PetscLogHandlerStop(h)); in main()
281 PetscCall(PetscLogHandlerView(h, PETSC_VIEWER_STDOUT_WORLD)); in main()
282 PetscCall(PetscLogHandlerDestroy(&h)); in main()