Lines Matching refs:sdm
690 DMSNES sdm; in KSPComputeOperators_SNES() local
714 PetscCall(DMGetDMSNES(snes->dm, &sdm)); in KSPComputeOperators_SNES()
715 if (Xnamed && sdm->ops->computefunction) { in KSPComputeOperators_SNES()
728 if (!sdm->ops->computejacobian) PetscCall(DMCopyDMSNES(dmsave, snes->dm)); in KSPComputeOperators_SNES()
762 DMSNES sdm; in SNESSetUpMatrices() local
766 PetscCall(DMGetDMSNES(dm, &sdm)); in SNESSetUpMatrices()
2241 DMSNES sdm; in SNESPicardComputeMFFunction() local
2245 PetscCall(DMGetDMSNES(dm, &sdm)); in SNESPicardComputeMFFunction()
2247 if (sdm->ops->computepfunction) { in SNESPicardComputeMFFunction()
2248 …PetscCallBack("SNES Picard callback function", (*sdm->ops->computepfunction)(snes, x, f, sdm->pctx… in SNESPicardComputeMFFunction()
2252 …llBack("SNES Picard callback Jacobian", (*sdm->ops->computepjacobian)(snes, x, snes->picard, snes-… in SNESPicardComputeMFFunction()
2255 …llBack("SNES Picard callback Jacobian", (*sdm->ops->computepjacobian)(snes, x, snes->picard, snes-… in SNESPicardComputeMFFunction()
2264 DMSNES sdm; in SNESPicardComputeFunction() local
2268 PetscCall(DMGetDMSNES(dm, &sdm)); in SNESPicardComputeFunction()
2270 if (sdm->ops->computepfunction) { in SNESPicardComputeFunction()
2271 …PetscCallBack("SNES Picard callback function", (*sdm->ops->computepfunction)(snes, x, f, sdm->pctx… in SNESPicardComputeFunction()
2273 …ck("SNES Picard callback Jacobian", (*sdm->ops->computepjacobian)(snes, x, snes->jacobian, snes->j… in SNESPicardComputeFunction()
2276 …ck("SNES Picard callback Jacobian", (*sdm->ops->computepjacobian)(snes, x, snes->jacobian, snes->j… in SNESPicardComputeFunction()
2468 DMSNES sdm; in SNESComputeFunction() local
2479 PetscCall(DMGetDMSNES(dm, &sdm)); in SNESComputeFunction()
2480 …PetscCheck(sdm->ops->computefunction || snes->vec_rhs, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, … in SNESComputeFunction()
2481 if (sdm->ops->computefunction) { in SNESComputeFunction()
2482 …if (sdm->ops->computefunction != SNESObjectiveComputeFunctionDefaultFD) PetscCall(PetscLogEventBeg… in SNESComputeFunction()
2493 …if (sdm->ops->computefunction != SNESObjectiveComputeFunctionDefaultFD) PetscCall(PetscLogEventEnd… in SNESComputeFunction()
2534 DMSNES sdm; in SNESComputeMFFunction() local
2545 PetscCall(DMGetDMSNES(dm, &sdm)); in SNESComputeMFFunction()
2550 …PetscCallBack("SNES callback function", (*sdm->ops->computemffunction)(snes, x, y, sdm->mffunction… in SNESComputeMFFunction()
2587 DMSNES sdm; in SNESComputeNGS() local
2598 PetscCall(DMGetDMSNES(dm, &sdm)); in SNESComputeNGS()
2599 …PetscCheck(sdm->ops->computegs, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "Must call SNESSetNGS()… in SNESComputeNGS()
2601 PetscCallBack("SNES callback NGS", (*sdm->ops->computegs)(snes, x, b, sdm->gsctx)); in SNESComputeNGS()
2958 DMSNES sdm; in SNESComputeJacobian() local
2967 PetscCall(DMGetDMSNES(dm, &sdm)); in SNESComputeJacobian()
3303 DMSNES sdm; in SNESSetDefaultComputeJacobian() local
3307 PetscCall(DMGetDMSNES(dm, &sdm)); in SNESSetDefaultComputeJacobian()
3308 if (!sdm->ops->computejacobian && snes->jacobian_pre) { in SNESSetDefaultComputeJacobian()
3347 DMSNES sdm; in SNESSetUp() local
3370 PetscCall(DMGetDMSNES(dm, &sdm)); in SNESSetUp()
5724 DMSNES sdm; in SNESSetDM() local
5733 PetscCall(DMGetDMSNES(snes->dm, &sdm)); in SNESSetDM()
5734 …if (sdm->originaldm == snes->dm) sdm->originaldm = dm; /* Grant write privileges to the replacemen… in SNESSetDM()