| /petsc/src/snes/utils/ |
| H A D | dmplexsnes.c | 763 …PetscErrorCode (**exacts)(PetscInt, PetscReal, const PetscReal x[], PetscInt, PetscScalar *u, Pets… 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 D | dm.c | 6255 …PetscErrorCode (**exacts)(PetscInt, PetscReal, const PetscReal x[], PetscInt, PetscScalar *u, Pets… in DMComputeExactSolution() local 6273 PetscCall(PetscMalloc2(Nf, &exacts, Nf, &ectxs)); in DMComputeExactSolution() 6285 PetscCall(PetscArrayzero(exacts, Nf)); in DMComputeExactSolution() 6288 …for (f = 0; f < dsNf; ++f) PetscCall(PetscDSGetExactSolution(ds, fields[f], &exacts[fields[f]], &e… in DMComputeExactSolution() 6289 …if (label) PetscCall(DMProjectFunctionLabelLocal(dm, time, label, 1, &id, 0, NULL, exacts, ectxs, … in DMComputeExactSolution() 6290 else PetscCall(DMProjectFunctionLocal(dm, time, exacts, ectxs, INSERT_ALL_VALUES, locu)); in DMComputeExactSolution() 6293 PetscCall(PetscArrayzero(exacts, Nf)); in DMComputeExactSolution() 6295 …Nf; ++f) PetscCall(PetscDSGetExactSolutionTimeDerivative(ds, fields[f], &exacts[fields[f]], &ectxs… in DMComputeExactSolution() 6296 …if (label) PetscCall(DMProjectFunctionLabelLocal(dm, time, label, 1, &id, 0, NULL, exacts, ectxs, … in DMComputeExactSolution() 6297 else PetscCall(DMProjectFunctionLocal(dm, time, exacts, ectxs, INSERT_ALL_VALUES, locu_t)); in DMComputeExactSolution() [all …]
|
| /petsc/src/ts/tutorials/ |
| H A D | ex53.c | 2027 …PetscErrorCode (**exacts)(PetscInt, PetscReal, const PetscReal x[], PetscInt, PetscScalar *u, Pets… 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 D | ex69.c | 3375 …PetscErrorCode (*exacts[2])(PetscInt dim, PetscReal t, const PetscReal x[], PetscInt Nf, PetscScal… 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()
|