Home
last modified time | relevance | path

Searched refs:exactSol (Results 1 – 11 of 11) sorted by relevance

/petsc/src/dm/dt/fe/tests/
H A Dex3.c51 PetscPointFn *exactSol; member
61 options->exactSol = NULL; in ProcessOptions()
76 options->exactSol = functions[i]; in ProcessOptions()
80 PetscCheck(options->exactSol, comm, PETSC_ERR_ARG_WRONG, "Invalid test function %s", name); in ProcessOptions()
90 …user->exactSol(dim, 1, 0, uOff, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, time, x, 0, … in exactSolution()
116 PetscCall(PetscWeakFormSetIndexResidual(wf, NULL, 0, 0, 0, 1, user->exactSol, 0, NULL)); in SetupProblem()
147 PetscSimplePointFn *exactSol[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()
[all …]
/petsc/include/petsc/private/
H A Dpetscconvestimpl.h28 …PetscErrorCode (**exactSol)(PetscInt, PetscReal, const PetscReal[], PetscInt, PetscScalar[], void … member
H A Ddmadaptorimpl.h46 …PetscErrorCode (**exactSol)(PetscInt, PetscReal, const PetscReal[], PetscInt, PetscScalar[], void … member
H A Dkspimpl.h227 PetscSimplePointFn *exactSol; 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.h110 PetscSimplePointFn **exactSol; // Exact solutions for each field member
/petsc/src/snes/utils/
H A Dconvest.c36 PetscCall(PetscFree3((*ce)->initGuess, (*ce)->exactSol, (*ce)->ctxs)); in PetscConvEstDestroy()
154 PetscCall(PetscCalloc3(ce->Nf, &ce->initGuess, ce->Nf, &ce->exactSol, ce->Nf, &ce->ctxs)); in PetscConvEstSetUp()
169 PetscCall(PetscDSGetExactSolution(ds, field, &ce->exactSol[field], &ce->ctxs[field])); in PetscConvEstSetUp()
173 …for (f = 0; f < Nf; ++f) PetscCheck(ce->exactSol[f], PetscObjectComm((PetscObject)ce), PETSC_ERR_A… in PetscConvEstSetUp()
270 PetscCall(DMComputeL2FieldDiff(dm, 0.0, ce->exactSol, ce->ctxs, u, errors)); in PetscConvEstComputeErrorSNES_Private()
/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()
673 …if (adaptor->exactSol[0]) PetscCall(DMAdaptorSetTransferFunction(adaptor, DMAdaptorTransferSolutio… in DMAdaptorSetUp()
/petsc/src/dm/dt/interface/
H A Ddtds.c583 for (f = 0; f < Nf; ++f) tmpexactSol[f] = prob->exactSol[f]; in PetscDSEnlarge_Static()
599 PetscCall(PetscFree4(prob->exactSol, prob->exactCtx, prob->exactSol_t, prob->exactCtx_t)); in PetscDSEnlarge_Static()
601 prob->exactSol = tmpexactSol; in PetscDSEnlarge_Static()
649 PetscCall(PetscFree4((*ds)->exactSol, (*ds)->exactCtx, (*ds)->exactSol_t, (*ds)->exactCtx_t)); in PetscDSDestroy()
2298 *sol = prob->exactSol[f]; in PetscDSGetExactSolution()
2330 prob->exactSol[f] = sol; in PetscDSSetExactSolution()
/petsc/src/ts/utils/
H A Dtsconvest.c45 PetscCall(DMComputeL2FieldDiff(dm, t, ce->exactSol, ce->ctxs, u, errors)); in PetscConvEstComputeErrorTS_Private()
/petsc/src/snes/interface/
H A Dsnes.c4642 …PetscErrorCode (**exactSol)(PetscInt, PetscReal, const PetscReal[], PetscInt, PetscScalar[], void … 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()
/petsc/src/dm/interface/
H A Ddm.c9163 …PetscErrorCode (**exactSol)(PetscInt, PetscReal, const PetscReal[], PetscInt, PetscScalar[], void … in DMComputeError() local
9170 PetscCall(PetscCalloc2(Nf, &exactSol, Nf, &ctxs)); in DMComputeError()
9184 PetscCall(PetscDSGetExactSolution(ds, field, &exactSol[field], &ctxs[field])); in DMComputeError()
9188 …for (f = 0; f < Nf; ++f) PetscCheck(exactSol[f], PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_W… in DMComputeError()
9190 if (errors) PetscCall(DMComputeL2FieldDiff(dm, time, exactSol, ctxs, sol, errors)); in DMComputeError()
9221 PetscCall(DMPlexComputeL2DiffVec(dm, time, exactSol, ctxs, sol, *errorVec)); in DMComputeError()
9224 PetscCall(PetscFree2(exactSol, ctxs)); in DMComputeError()