Home
last modified time | relevance | path

Searched refs:ictx (Results 1 – 7 of 7) sorted by relevance

/petsc/src/ts/interface/ !
H A Dtsmon.c583 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()
[all …]
/petsc/src/ts/tutorials/ !
H A Dex24.c97 static PetscErrorCode MonitorObjective(TS ts, PetscInt step, PetscReal t, Vec X, void *ictx) in MonitorObjective() argument
99 Ctx *ctx = (Ctx *)ictx; in MonitorObjective()
118 PetscCall(FormIFunction(ts, t, X, Xdot, F, ictx)); in MonitorObjective()
145 static PetscErrorCode FormIFunction(TS ts, PetscReal t, Vec X, Vec Xdot, Vec F, void *ictx) in FormIFunction() argument
150 Ctx *ctx = (Ctx *)ictx; in FormIFunction()
195 …rCode FormIJacobian(TS ts, PetscReal t, Vec X, Vec Xdot, PetscReal shift, Mat J, Mat B, void *ictx) in FormIJacobian() argument
199 Ctx *ctx = (Ctx *)ictx; in FormIJacobian()
H A Dex77.c435 DMInterpolationInfo ictx; in FreeStreaming() local
457 PetscCall(DMInterpolationCreate(PETSC_COMM_SELF, &ictx)); in FreeStreaming()
458 PetscCall(DMInterpolationSetDim(ictx, dim)); in FreeStreaming()
459 PetscCall(DMInterpolationSetDof(ictx, dim)); in FreeStreaming()
461 PetscCall(DMInterpolationAddPoints(ictx, Np, (PetscReal *)coords)); in FreeStreaming()
465 PetscCall(DMInterpolationSetUp(ictx, vdm, PETSC_FALSE, PETSC_TRUE)); in FreeStreaming()
467 PetscCall(DMInterpolationEvaluate(ictx, vdm, locvel, pvel)); in FreeStreaming()
468 PetscCall(DMInterpolationDestroy(&ictx)); in FreeStreaming()
/petsc/src/dm/impls/swarm/ !
H A Dswarmpic_sort.c98 DMSwarmSort ictx; in DMSwarmSortDestroy() local
103 ictx = *ctx; in DMSwarmSortDestroy()
104 if (ictx->list) PetscCall(PetscFree(ictx->list)); in DMSwarmSortDestroy()
105 if (ictx->pcell_offsets) PetscCall(PetscFree(ictx->pcell_offsets)); in DMSwarmSortDestroy()
106 PetscCall(PetscFree(ictx)); in DMSwarmSortDestroy()
/petsc/src/tao/interface/ !
H A Dtaosolver.c1899 TaoMonitorDrawCtx ictx = (TaoMonitorDrawCtx)ctx; in TaoMonitorSolutionDraw() local
1903 …if (!(((ictx->howoften > 0) && (!(tao->niter % ictx->howoften))) || ((ictx->howoften == -1) && tao… in TaoMonitorSolutionDraw()
1904 PetscCall(VecView(tao->solution, ictx->viewer)); in TaoMonitorSolutionDraw()
1926 TaoMonitorDrawCtx ictx = (TaoMonitorDrawCtx)ctx; in TaoMonitorGradientDraw() local
1930 …if (!(((ictx->howoften > 0) && (!(tao->niter % ictx->howoften))) || ((ictx->howoften == -1) && tao… in TaoMonitorGradientDraw()
1931 PetscCall(VecView(tao->gradient, ictx->viewer)); in TaoMonitorGradientDraw()
2854 PetscErrorCode TaoMonitorDrawCtxDestroy(TaoMonitorDrawCtx *ictx) in TaoMonitorDrawCtxDestroy() argument
2857 PetscCall(PetscViewerDestroy(&(*ictx)->viewer)); in TaoMonitorDrawCtxDestroy()
2858 PetscCall(PetscFree(*ictx)); in TaoMonitorDrawCtxDestroy()
/petsc/src/snes/utils/ !
H A Ddmplexsnes.c639 struct _DMSNESJacobianMFCtx *ictx; in DMSNESCreateJacobianMF() local
650 PetscCall(PetscMalloc1(1, &ictx)); in DMSNESCreateJacobianMF()
651 ictx->dm = dm; in DMSNESCreateJacobianMF()
652 ictx->X = X; in DMSNESCreateJacobianMF()
653 ictx->ctx = ctx; in DMSNESCreateJacobianMF()
654 PetscCall(MatShellSetContext(*J, ictx)); in DMSNESCreateJacobianMF()
/petsc/src/ts/interface/sensitivity/ !
H A Dtssen.c1428 TSMonitorDrawCtx ictx = (TSMonitorDrawCtx)dummy; in TSAdjointMonitorDrawSensi() local
1434 …if (!(((ictx->howoften > 0) && (!(step % ictx->howoften))) || ((ictx->howoften == -1) && ts->reaso… in TSAdjointMonitorDrawSensi()
1436 PetscCall(VecView(lambda[0], ictx->viewer)); in TSAdjointMonitorDrawSensi()
1437 PetscCall(PetscViewerDrawGetDraw(ictx->viewer, 0, &draw)); in TSAdjointMonitorDrawSensi()