Lines Matching refs:rayctx
349 TSMonitorDMDARayCtx *rayctx; in TSSetFromOptions() local
362 PetscCall(PetscNew(&rayctx)); in TSSetFromOptions()
364 PetscCall(DMDAGetRay(da, ddir, ray, &rayctx->ray, &rayctx->scatter)); in TSSetFromOptions()
366 …== 0) PetscCall(PetscViewerDrawOpen(PETSC_COMM_SELF, NULL, NULL, 0, 0, 600, 300, &rayctx->viewer)); in TSSetFromOptions()
367 rayctx->lgctx = NULL; in TSSetFromOptions()
368 PetscCall(TSMonitorSet(ts, TSMonitorDMDARay, rayctx, TSMonitorDMDARayDestroy)); in TSSetFromOptions()
372 TSMonitorDMDARayCtx *rayctx; in TSSetFromOptions() local
385 PetscCall(PetscNew(&rayctx)); in TSSetFromOptions()
387 PetscCall(DMDAGetRay(da, ddir, ray, &rayctx->ray, &rayctx->scatter)); in TSSetFromOptions()
388 …eate(PETSC_COMM_SELF, NULL, NULL, PETSC_DECIDE, PETSC_DECIDE, 600, 400, howoften, &rayctx->lgctx)); in TSSetFromOptions()
389 PetscCall(TSMonitorSet(ts, TSMonitorLGDMDARay, rayctx, TSMonitorDMDARayDestroy)); in TSSetFromOptions()