Home
last modified time | relevance | path

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

/petsc/src/dm/dt/fe/tests/
H A Dex3.c148 void *exactCtx[1]; in CheckInterpolation() local
158 PetscCall(PetscDSGetExactSolution(ds, 0, &exactSol[0], &exactCtx[0])); in CheckInterpolation()
159 PetscCall(DMProjectFunction(dm, 0.0, exactSol, exactCtx, INSERT_ALL_VALUES, u)); in CheckInterpolation()
161 PetscCall(DMComputeL2Diff(dm, 0.0, exactSol, exactCtx, u, &error)); in CheckInterpolation()
172 void *exactCtx[1]; in CheckL2Projection() local
183 PetscCall(PetscDSGetExactSolution(ds, 0, &exactSol[0], &exactCtx[0])); in CheckL2Projection()
194 PetscCall(DMComputeL2Diff(dm, 0.0, exactSol, exactCtx, u, &error)); in CheckL2Projection()
/petsc/include/petsc/private/
H A Ddmadaptorimpl.h47 void **exactCtx; member
H A Dkspimpl.h228 void *exactCtx; in KSPLogErrorHistory() local
242 PetscCall(PetscDSGetExactSolution(ds, 0, &exactSol, &exactCtx)); in KSPLogErrorHistory()
243 PetscCall(DMComputeL2FieldDiff(dm, 0.0, &exactSol, &exactCtx, u, &error)); in KSPLogErrorHistory()
H A Dpetscdsimpl.h111 void **exactCtx; // Contexts for the exact solution functions member
/petsc/src/snes/utils/dm/
H A Ddmadapt.c242 PetscCall(PetscFree2((*adaptor)->exactSol, (*adaptor)->exactCtx)); in DMAdaptorDestroy()
643 …PetscCall(DMProjectFunction(adm, 0.0, adaptor->exactSol, adaptor->exactCtx, INSERT_ALL_VALUES, au)… in DMAdaptorTransferSolution_Exact_Private()
669 PetscCall(PetscMalloc2(Nf, &adaptor->exactSol, Nf, &adaptor->exactCtx)); in DMAdaptorSetUp()
671 PetscCall(PetscDSGetExactSolution(prob, f, &adaptor->exactSol[f], &adaptor->exactCtx[f])); in DMAdaptorSetUp()
/petsc/src/dm/dt/interface/
H A Ddtds.c584 for (f = 0; f < Nf; ++f) tmpexactCtx[f] = prob->exactCtx[f]; in PetscDSEnlarge_Static()
599 PetscCall(PetscFree4(prob->exactSol, prob->exactCtx, prob->exactSol_t, prob->exactCtx_t)); in PetscDSEnlarge_Static()
602 prob->exactCtx = tmpexactCtx; in PetscDSEnlarge_Static()
649 PetscCall(PetscFree4((*ds)->exactSol, (*ds)->exactCtx, (*ds)->exactSol_t, (*ds)->exactCtx_t)); in PetscDSDestroy()
2302 *ctx = prob->exactCtx[f]; in PetscDSGetExactSolution()
2334 prob->exactCtx[f] = ctx; in PetscDSSetExactSolution()
/petsc/src/snes/interface/
H A Dsnes.c4643 void **exactCtx; in SNESConvergedReasonView() local
4650 PetscCall(PetscMalloc2(Nf, &exactSol, Nf, &exactCtx)); in SNESConvergedReasonView()
4651 … for (f = 0; f < Nf; ++f) PetscCall(PetscDSGetExactSolution(prob, f, &exactSol[f], &exactCtx[f])); in SNESConvergedReasonView()
4652 PetscCall(DMComputeL2Diff(dm, 0.0, exactSol, exactCtx, u, &error)); in SNESConvergedReasonView()
4653 PetscCall(PetscFree2(exactSol, exactCtx)); in SNESConvergedReasonView()