Lines Matching refs:vec_func
591 if (!snes->vec_func && (snes->jacobian || snes->jacobian_pre)) { in SNESSetUpMatrixFree_Private()
593 PetscCall(MatCreateVecs(A ? A : B, NULL, &snes->vec_func)); in SNESSetUpMatrixFree_Private()
603 …PetscCheck(snes->vec_func, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "SNESSetFunction() must be c… in SNESSetUpMatrixFree_Private()
605 PetscCall(MatCreateSNESMFMore(snes, snes->vec_func, &J)); in SNESSetUpMatrixFree_Private()
1956 PetscCall(VecDestroy(&snes->vec_func)); in SNESSetFunction()
1957 snes->vec_func = r; in SNESSetFunction()
1985 Vec vec_func; in SNESSetInitialFunction() local
1995 PetscCall(SNESGetFunction(snes, &vec_func, NULL, NULL)); in SNESSetInitialFunction()
1996 PetscCall(VecCopy(f, vec_func)); in SNESSetInitialFunction()
3367 PetscCall(SNESGetFunction(snes, &snes->vec_func, NULL, NULL)); in SNESSetUp()
3373 if (!snes->vec_func) PetscCall(DMCreateGlobalVector(dm, &snes->vec_func)); in SNESSetUp()
3486 PetscCall(VecDestroy(&snes->vec_func)); in SNESReset()
4885 …if (snes->vec_rhs) PetscCheck(snes->vec_func != snes->vec_rhs, PETSC_COMM_SELF, PETSC_ERR_ARG_IDN,… in SNESSolve()
4886 …PetscCheck(snes->vec_func != snes->vec_sol, PETSC_COMM_SELF, PETSC_ERR_ARG_IDN, "Solution vector c… in SNESSolve()
5159 if (!snes->vec_func) { in SNESGetFunction()
5161 PetscCall(VecDuplicate(snes->vec_rhs, &snes->vec_func)); in SNESGetFunction()
5163 PetscCall(VecDuplicate(snes->vec_sol, &snes->vec_func)); in SNESGetFunction()
5165 PetscCall(DMCreateGlobalVector(snes->dm, &snes->vec_func)); in SNESGetFunction()
5168 *r = snes->vec_func; in SNESGetFunction()
5575 PetscCall(VecNorm(snes->vec_func, NORM_2, &kctx->norm_first)); in KSPPreSolve_SNESEW()