Lines Matching refs:Pmat
1128 . Pmat - matrix from which preconditioner is to be constructed (usually the same as `Amat`)
1137 The `TS` solver may modify the nonzero structure and the entries of the matrices `Amat` and `Pmat` between the calls to `f()`
1143 PetscErrorCode TSSetRHSJacobian(TS ts, Mat Amat, Mat Pmat, TSRHSJacobianFn *f, PetscCtx ctx)
1152 if (Pmat) PetscValidHeaderSpecific(Pmat, MAT_CLASSID, 3);
1154 if (Pmat) PetscCheckSameComm(ts, 1, Pmat, 3);
1160 if (!ijacobian) PetscCall(SNESSetJacobian(snes, Amat, Pmat, SNESTSFormJacobian, ts));
1166 if (Pmat) {
1167 PetscCall(PetscObjectReference((PetscObject)Pmat));
1169 ts->Brhs = Pmat;
1287 . Pmat - matrix used to compute preconditioner (usually the same as `Amat`)
1294 The matrices `Amat` and `Pmat` are exactly the matrices that are used by `SNES` for the nonlinear solve.
1308 The TS solver may modify the nonzero structure and the entries of the matrices `Amat` and `Pmat` between the calls to `f`
1317 PetscErrorCode TSSetIJacobian(TS ts, Mat Amat, Mat Pmat, TSIJacobianFn *f, PetscCtx ctx)
1325 if (Pmat) PetscValidHeaderSpecific(Pmat, MAT_CLASSID, 3);
1327 if (Pmat) PetscCheckSameComm(ts, 1, Pmat, 3);
1333 PetscCall(SNESSetJacobian(snes, Amat, Pmat, SNESTSFormJacobian, ts));
2521 Mat Amat, Pmat;
2524 PetscCall(SNESGetJacobian(snes, &Amat, &Pmat, NULL, NULL));
2533 if (Pmat && Pmat == ts->Brhs) {
2534 PetscCall(MatDuplicate(ts->Brhs, MAT_COPY_VALUES, &Pmat));
2535 PetscCall(SNESSetJacobian(snes, NULL, Pmat, NULL, NULL));
2536 PetscCall(MatDestroy(&Pmat));
4416 . Pmat - The matrix from which the preconditioner is constructed, usually the same as `Amat` (or `NULL`)
4428 PetscErrorCode TSGetRHSJacobian(TS ts, Mat *Amat, Mat *Pmat, TSRHSJacobianFn **func, PetscCtxRt ctx)
4433 if (Amat || Pmat) {
4437 PetscCall(SNESGetJacobian(snes, Amat, Pmat, NULL, NULL));
4454 . Pmat - The matrix from which the preconditioner is constructed, often the same as `Amat`
4465 PetscErrorCode TSGetIJacobian(TS ts, Mat *Amat, Mat *Pmat, TSIJacobianFn **f, PetscCtxRt ctx)
4470 if (Amat || Pmat) {
4474 PetscCall(SNESGetJacobian(snes, Amat, Pmat, NULL, NULL));