Lines Matching refs:ictx

583   TSMonitorDrawCtx ictx = (TSMonitorDrawCtx)ctx;  in TSMonitorDrawSolution()  local
587 if (!step && ictx->showinitial) { in TSMonitorDrawSolution()
588 if (!ictx->initialsolution) PetscCall(VecDuplicate(u, &ictx->initialsolution)); in TSMonitorDrawSolution()
589 PetscCall(VecCopy(u, ictx->initialsolution)); in TSMonitorDrawSolution()
591 …if (!(((ictx->howoften > 0) && (!(step % ictx->howoften))) || ((ictx->howoften == -1) && ts->reaso… in TSMonitorDrawSolution()
593 if (ictx->showinitial) { in TSMonitorDrawSolution()
595 PetscCall(PetscViewerDrawGetPause(ictx->viewer, &pause)); in TSMonitorDrawSolution()
596 PetscCall(PetscViewerDrawSetPause(ictx->viewer, 0.0)); in TSMonitorDrawSolution()
597 PetscCall(VecView(ictx->initialsolution, ictx->viewer)); in TSMonitorDrawSolution()
598 PetscCall(PetscViewerDrawSetPause(ictx->viewer, pause)); in TSMonitorDrawSolution()
599 PetscCall(PetscViewerDrawSetHold(ictx->viewer, PETSC_TRUE)); in TSMonitorDrawSolution()
601 PetscCall(VecView(u, ictx->viewer)); in TSMonitorDrawSolution()
602 if (ictx->showtimestepandtime) { in TSMonitorDrawSolution()
606 PetscCall(PetscViewerDrawGetDraw(ictx->viewer, 0, &draw)); in TSMonitorDrawSolution()
614 if (ictx->showinitial) PetscCall(PetscViewerDrawSetHold(ictx->viewer, PETSC_FALSE)); in TSMonitorDrawSolution()
640 TSMonitorDrawCtx ictx = (TSMonitorDrawCtx)ctx; in TSMonitorDrawSolutionPhase() local
655 PetscCall(PetscViewerDrawGetDraw(ictx->viewer, 0, &draw)); in TSMonitorDrawSolutionPhase()
656 PetscCall(PetscViewerDrawGetDrawAxis(ictx->viewer, 0, &axis)); in TSMonitorDrawSolutionPhase()
671 if (ictx->showtimestepandtime) { in TSMonitorDrawSolutionPhase()
696 PetscErrorCode TSMonitorDrawCtxDestroy(TSMonitorDrawCtx *ictx) in TSMonitorDrawCtxDestroy() argument
699 PetscCall(PetscViewerDestroy(&(*ictx)->viewer)); in TSMonitorDrawCtxDestroy()
700 PetscCall(VecDestroy(&(*ictx)->initialsolution)); in TSMonitorDrawCtxDestroy()
701 PetscCall(PetscFree(*ictx)); in TSMonitorDrawCtxDestroy()
971 TSMonitorVTKCtx ictx; in TSMonitorSolutionVTKCtxCreate() local
984 PetscCall(PetscNew(&ictx)); in TSMonitorSolutionVTKCtxCreate()
985 PetscCall(PetscStrallocpy(filenametemplate, &ictx->filenametemplate)); in TSMonitorSolutionVTKCtxCreate()
986 ictx->interval = 1; in TSMonitorSolutionVTKCtxCreate()
988 *ctx = ictx; in TSMonitorSolutionVTKCtxCreate()