Searched refs:hasPrec (Results 1 – 4 of 4) sorted by relevance
| /petsc/src/ts/utils/ |
| H A D | dmplexts.c | 195 PetscBool hasJac, hasPrec; in DMPlexTSComputeIJacobianFEM() local 224 PetscCall(PetscDSHasJacobianPreconditioner(ds, &hasPrec)); in DMPlexTSComputeIJacobianFEM() 225 if (hasJac && hasPrec) PetscCall(MatZeroEntries(Jac)); in DMPlexTSComputeIJacobianFEM() 367 PetscBool hasJac, hasPrec, isLin = PETSC_FALSE; in DMTSCheckJacobian() local 383 PetscCall(PetscDSHasJacobianPreconditioner(ds, &hasPrec)); in DMTSCheckJacobian() 384 if (hasJac && hasPrec) { in DMTSCheckJacobian()
|
| /petsc/src/snes/utils/ |
| H A D | dmplexsnes.c | 545 PetscBool hasJac, hasPrec; in DMPlexSNESComputeJacobianFEM() local 574 PetscCall(PetscDSHasJacobianPreconditioner(ds, &hasPrec)); in DMPlexSNESComputeJacobianFEM() 575 if (hasJac && hasPrec) PetscCall(MatZeroEntries(Jac)); in DMPlexSNESComputeJacobianFEM() 903 PetscBool hasJac, hasPrec, isLin = PETSC_FALSE; in DMSNESCheckJacobian() local 919 PetscCall(PetscDSHasJacobianPreconditioner(ds, &hasPrec)); in DMSNESCheckJacobian() 920 if (hasJac && hasPrec) { in DMSNESCheckJacobian()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexfem.c | 4631 PetscBool hasJac, hasPrec, hasDyn, assembleJac, *isFE, hasFV = PETSC_FALSE; in DMPlexComputeJacobian_Patch_Internal() local 4663 PetscCall(PetscDSHasJacobianPreconditioner(prob, &hasPrec)); in DMPlexComputeJacobian_Patch_Internal() 4665 assembleJac = hasJac && hasPrec && (Jac != JacP) ? PETSC_TRUE : PETSC_FALSE; in DMPlexComputeJacobian_Patch_Internal() 4691 … ? 1 : 0)) * totDim + (dmAux ? 1 : 0) * totDimAux + ((hasJac ? 1 : 0) + (hasPrec ? 1 : 0) + (hasDy… in DMPlexComputeJacobian_Patch_Internal() 4699 elemMatP = hasPrec ? (sz = chunkSize * totDim * totDim, off += sz, work + off - sz) : NULL; in DMPlexComputeJacobian_Patch_Internal() 4752 …if (hasPrec) PetscCall(PetscFEIntegrateJacobian(prob, prob, PETSCFE_JACOBIAN_PRE, key, Ncell, cgeo… in DMPlexComputeJacobian_Patch_Internal() 4767 if (hasPrec) elemMatP[eOffset + i * totDim + i] = 1.0; in DMPlexComputeJacobian_Patch_Internal() 4781 …if (hasPrec) PetscCall(DMPrintCellMatrix(cell, nameP, totDim, totDim, &elemMatP[(c - cStart) * tot… in DMPlexComputeJacobian_Patch_Internal() 4792 …, ((1 + (X_t ? 1 : 0) + (dmAux ? 1 : 0)) * totDim + ((hasJac ? 1 : 0) + (hasPrec ? 1 : 0) + (hasDy… in DMPlexComputeJacobian_Patch_Internal() 5918 PetscBool hasJac = PETSC_FALSE, hasPrec = PETSC_FALSE, transform; in DMPlexComputeBdJacobianSingleByLabel() local [all …]
|
| /petsc/src/snes/interface/ |
| H A D | snes.c | 789 PetscBool hasPrec = PETSC_FALSE; in SNESSetUpMatrices() local 793 if (prob) PetscCall(PetscDSHasJacobianPreconditioner(prob, &hasPrec)); in SNESSetUpMatrices() 795 else if (hasPrec) PetscCall(DMCreateMatrix(snes->dm, &J)); in SNESSetUpMatrices()
|