Home
last modified time | relevance | path

Searched refs:ectxs (Results 1 – 4 of 4) sorted by relevance

/petsc/src/snes/utils/
H A Ddmplexsnes.c764 void **ectxs; in DMSNESCheckDiscretization() local
780 PetscCall(PetscCalloc3(Nf, &exacts, Nf, &ectxs, PetscMax(1, Nf), &err)); in DMSNESCheckDiscretization()
797 PetscCall(PetscDSGetExactSolution(ds, field, &exacts[field], &ectxs[field])); in DMSNESCheckDiscretization()
803 PetscCall(DMComputeL2FieldDiff(dm, t, exacts, ectxs, u, err)); in DMSNESCheckDiscretization()
817 PetscCall(DMComputeL2Diff(dm, t, exacts, ectxs, u, &err[0])); in DMSNESCheckDiscretization()
826 PetscCall(PetscFree3(exacts, ectxs, err)); in DMSNESCheckDiscretization()
/petsc/src/dm/interface/
H A Ddm.c6256 void **ectxs; in DMComputeExactSolution() local
6273 PetscCall(PetscMalloc2(Nf, &exacts, Nf, &ectxs)); in DMComputeExactSolution()
6286 PetscCall(PetscArrayzero(ectxs, Nf)); in DMComputeExactSolution()
6288 …sNf; ++f) PetscCall(PetscDSGetExactSolution(ds, fields[f], &exacts[fields[f]], &ectxs[fields[f]])); in DMComputeExactSolution()
6289 …all(DMProjectFunctionLabelLocal(dm, time, label, 1, &id, 0, NULL, exacts, ectxs, INSERT_ALL_VALUES… in DMComputeExactSolution()
6290 else PetscCall(DMProjectFunctionLocal(dm, time, exacts, ectxs, INSERT_ALL_VALUES, locu)); in DMComputeExactSolution()
6294 PetscCall(PetscArrayzero(ectxs, Nf)); in DMComputeExactSolution()
6295 …cCall(PetscDSGetExactSolutionTimeDerivative(ds, fields[f], &exacts[fields[f]], &ectxs[fields[f]])); in DMComputeExactSolution()
6296 …all(DMProjectFunctionLabelLocal(dm, time, label, 1, &id, 0, NULL, exacts, ectxs, INSERT_ALL_VALUES… in DMComputeExactSolution()
6297 else PetscCall(DMProjectFunctionLocal(dm, time, exacts, ectxs, INSERT_ALL_VALUES, locu_t)); in DMComputeExactSolution()
[all …]
/petsc/src/ts/tutorials/
H A Dex53.c2028 void **ectxs; in SolutionMonitor() local
2033 PetscCall(PetscCalloc3(Nf, &exacts, Nf, &ectxs, PetscMax(1, Nf), &err)); in SolutionMonitor()
2050 PetscCall(PetscDSGetExactSolution(ds, field, &exacts[field], &ectxs[field])); in SolutionMonitor()
2055 PetscCall(DMComputeL2FieldDiff(dm, time, exacts, ectxs, u, err)); in SolutionMonitor()
2062 PetscCall(PetscFree3(exacts, ectxs, err)); in SolutionMonitor()
/petsc/src/snes/tutorials/
H A Dex69.c3376 void *ectxs[2]; in main() local
3381 PetscCall(PetscDSGetExactSolution(ds, 0, &exacts[0], &ectxs[0])); in main()
3382 PetscCall(PetscDSGetExactSolution(ds, 1, &exacts[1], &ectxs[1])); in main()
3386 PetscCall(DMPlexComputeL2DiffVec(dm, 0.0, exacts, ectxs, u, e)); in main()