Lines Matching refs:exactFuncs
406 …dm, PetscBool usePoly, PetscInt order, PetscInt dir, PetscErrorCode (**exactFuncs)(PetscInt, Petsc… in SetupFunctions()
415 exactFuncs[0] = constant; in SetupFunctions()
419 exactFuncs[0] = linear; in SetupFunctions()
423 exactFuncs[0] = quadratic; in SetupFunctions()
427 exactFuncs[0] = cubic; in SetupFunctions()
431 exactFuncs[0] = quartic; in SetupFunctions()
440 exactFuncs[0] = trig; in SetupFunctions()
446 static PetscErrorCode ComputeError(DM dm, PetscErrorCode (**exactFuncs)(PetscInt, PetscReal, const … in ComputeError()
454 PetscCall(DMProjectFunction(dm, 0.0, exactFuncs, exactCtxs, INSERT_ALL_VALUES, u)); in ComputeError()
457 PetscCall(DMComputeL2Diff(dm, 0.0, exactFuncs, exactCtxs, u, error)); in ComputeError()
465 …PetscErrorCode (*exactFuncs[1])(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nf, Pe… in CheckFunctions() local
479 PetscCall(SetupFunctions(dm, PETSC_TRUE, order, 0, exactFuncs, exactFuncDers, user)); in CheckFunctions()
480 PetscCall(ComputeError(dm, exactFuncs, exactFuncDers, exactCtxs, &error, &errorDer, user)); in CheckFunctions()
492 …PetscErrorCode (*exactFuncs[1])(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nf, Pe… in CheckTransferError() local
507 PetscCall(SetupFunctions(fdm, usePoly, order, dir, exactFuncs, exactFuncDers, user)); in CheckTransferError()
509 PetscCall(DMComputeL2Diff(fdm, 0.0, exactFuncs, exactCtxs, fu, &error)); in CheckTransferError()
521 …PetscErrorCode (*exactFuncs[1])(PetscInt, PetscReal, const PetscReal x[], PetscInt, PetscScalar *u… in CheckTransfer() local
560 PetscCall(SetupFunctions(dm, PETSC_TRUE, order, 0, exactFuncs, exactFuncDers, user)); in CheckTransfer()
561 PetscCall(DMProjectFunction(idm, 0.0, exactFuncs, exactCtxs, INSERT_ALL_VALUES, iu)); in CheckTransfer()
600 …PetscCall(SetupFunctions(idm, user->usePoly, user->usePoly ? k : k + 1, d, exactFuncs, exactFuncDe… in CheckTransfer()
601 PetscCall(DMProjectFunction(idm, 0.0, exactFuncs, exactCtxs, INSERT_ALL_VALUES, iV)); in CheckTransfer()
602 PetscCall(DMProjectFunction(fdm, 0.0, exactFuncs, exactCtxs, INSERT_ALL_VALUES, fV)); in CheckTransfer()