Lines Matching refs:exactFuncs

725 static PetscErrorCode ComputeError(DM dm, PetscErrorCode (**exactFuncs)(PetscInt, PetscReal, const …  in ComputeError()
733 PetscCall(DMProjectFunction(dm, 0.0, exactFuncs, exactCtxs, INSERT_ALL_VALUES, u)); in ComputeError()
736 PetscCall(DMComputeL2Diff(dm, 0.0, exactFuncs, exactCtxs, u, error)); in ComputeError()
744 …PetscErrorCode (*exactFuncs[1])(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nf, Pe… in CheckFunctions() local
759 exactFuncs[0] = rt0; in CheckFunctions()
762 exactFuncs[0] = constant; in CheckFunctions()
768 exactFuncs[0] = rt1; in CheckFunctions()
771 exactFuncs[0] = linear; in CheckFunctions()
776 exactFuncs[0] = quadratic; in CheckFunctions()
780 exactFuncs[0] = cubic; in CheckFunctions()
786 PetscCall(ComputeError(dm, exactFuncs, exactFuncDers, exactCtxs, &error, &errorDer, user)); in CheckFunctions()
797 …PetscErrorCode (*exactFuncs[1])(PetscInt, PetscReal, const PetscReal x[], PetscInt, PetscScalar *u… in CheckInterpolation() local
828 exactFuncs[0] = constant; in CheckInterpolation()
832 exactFuncs[0] = linear; in CheckInterpolation()
836 exactFuncs[0] = quadratic; in CheckInterpolation()
840 exactFuncs[0] = cubic; in CheckInterpolation()
854 PetscCall(DMProjectFunction(idm, 0.0, exactFuncs, exactCtxs, INSERT_ALL_VALUES, iu)); in CheckInterpolation()
862 PetscCall(DMComputeL2Diff(fdm, 0.0, exactFuncs, exactCtxs, fu, &error)); in CheckInterpolation()
880 …PetscErrorCode (*exactFuncs[1])(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nf, Pe… in CheckConvergence() local
901 PetscCall(ComputeError(odm, exactFuncs, exactFuncDers, exactCtxs, &errorOld, &errorDerOld, user)); in CheckConvergence()
907 PetscCall(ComputeError(rdm, exactFuncs, exactFuncDers, exactCtxs, &error, &errorDer, user)); in CheckConvergence()
925 PetscCall(ComputeError(cdm, exactFuncs, exactFuncDers, exactCtxs, &error, &errorDer, user)); in CheckConvergence()