| /petsc/src/ts/utils/ |
| H A D | dmplexts.c | 191 …M(DM dm, PetscReal time, Vec locX, Vec locX_t, PetscReal X_tShift, Mat Jac, Mat JacP, PetscCtx ctx) in DMPlexTSComputeIJacobianFEM() argument 226 PetscCall(MatZeroEntries(JacP)); in DMPlexTSComputeIJacobianFEM() 228 …PetscCall(DMPlexComputeJacobianByKey(plex, key, cellIS, time, X_tShift, locX, locX_t, Jac, JacP, c… in DMPlexTSComputeIJacobianFEM()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexfem.c | 4618 …ction, IS cellIS, PetscReal t, PetscReal X_tShift, Vec X, Vec X_t, Mat Jac, Mat JacP, PetscCtx ctx) in DMPlexComputeJacobian_Patch_Internal() argument 4629 Mat J = Jac, JP = JacP; in DMPlexComputeJacobian_Patch_Internal() 4665 assembleJac = hasJac && hasPrec && (Jac != JacP) ? PETSC_TRUE : PETSC_FALSE; in DMPlexComputeJacobian_Patch_Internal() 4790 if (hasFV) PetscCall(MatSetOption(JacP, MAT_IGNORE_ZERO_ENTRIES, PETSC_FALSE)); in DMPlexComputeJacobian_Patch_Internal() 4800 PetscCall(MatAssemblyBegin(JacP, MAT_FINAL_ASSEMBLY)); in DMPlexComputeJacobian_Patch_Internal() 4801 PetscCall(MatAssemblyEnd(JacP, MAT_FINAL_ASSEMBLY)); in DMPlexComputeJacobian_Patch_Internal() 5906 …etIS, Vec locX, Vec locX_t, PetscReal t, DMField coordField, PetscReal X_tShift, Mat Jac, Mat JacP) in DMPlexComputeBdJacobianSingleByLabel() argument 6053 …xMatSetClosure_Internal(plex, section, globalSection, mesh->useMatClPerm, JacP, support[0], &elemM… in DMPlexComputeBdJacobianSingleByLabel() 6097 …alues[], PetscInt fieldI, Vec locX, Vec locX_t, PetscReal t, PetscReal X_tShift, Mat Jac, Mat JacP) in DMPlexComputeBdJacobianSingle() argument 6109 … wf, label, numValues, values, fieldI, facetIS, locX, locX_t, t, coordField, X_tShift, Jac, JacP)); in DMPlexComputeBdJacobianSingle() [all …]
|
| /petsc/src/snes/utils/ |
| H A D | dmplexsnes.c | 541 PetscErrorCode DMPlexSNESComputeJacobianFEM(DM dm, Vec X, Mat Jac, Mat JacP, PetscCtx ctx) in DMPlexSNESComputeJacobianFEM() argument 576 PetscCall(MatZeroEntries(JacP)); in DMPlexSNESComputeJacobianFEM() 578 PetscCall(DMPlexComputeJacobianByKey(plex, key, cellIS, 0.0, 0.0, X, NULL, Jac, JacP, ctx)); in DMPlexSNESComputeJacobianFEM()
|
| /petsc/src/ts/utils/dmplexlandau/kokkos/ |
| H A D | landau.kokkos.cxx | 381 …t events[], const PetscInt a_mat_offset[], const PetscInt a_species_offset[], Mat subJ[], Mat JacP) in LandauKokkosJacobian() argument 456 PetscCall(PetscObjectQuery((PetscObject)JacP, "assembly_maps", (PetscObject *)&container)); in LandauKokkosJacobian() 781 PetscCall(MatSetValuesCOO(JacP, d_coo_vals, ADD_VALUES)); in LandauKokkosJacobian() 827 PetscCall(MatSetValues(JacP, 1, &row, nzl, colbuf, vals, ADD_VALUES)); in LandauKokkosJacobian()
|
| /petsc/src/ts/utils/dmplexlandau/ |
| H A D | plexland.c | 86 static PetscErrorCode LandauFormJacobian_Internal(Vec a_X, Mat JacP, const PetscInt dim, PetscReal … in LandauFormJacobian_Internal() argument 101 PetscValidHeaderSpecific(JacP, MAT_CLASSID, 2); in LandauFormJacobian_Internal() 107 PetscCall(PetscObjectQuery((PetscObject)JacP, "assembly_maps", (PetscObject *)&container)); in LandauFormJacobian_Internal() 204 …sure, xdata, &ctx->SData_d, shift, ctx->events, ctx->mat_offset, ctx->species_offset, subJ, JacP)); in LandauFormJacobian_Internal() 532 PetscCall(MatSetValues(JacP, nr, rows, nc, cols, vals, ADD_VALUES)); in LandauFormJacobian_Internal() 568 PetscCall(MatSetValues(JacP, 1, &row, nzl, colbuf, vals, ADD_VALUES)); in LandauFormJacobian_Internal() 576 PetscCall(MatSetValuesCOO(JacP, coo_vals, ADD_VALUES)); in LandauFormJacobian_Internal() 580 PetscCall(MatAssemblyBegin(JacP, MAT_FINAL_ASSEMBLY)); in LandauFormJacobian_Internal() 581 PetscCall(MatAssemblyEnd(JacP, MAT_FINAL_ASSEMBLY)); in LandauFormJacobian_Internal()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex30.c | 1456 …ate(DM dm, PetscReal time, Vec locX, Vec locX_t, PetscReal X_tShift, Mat Jac, Mat JacP, void *user) in DMPlexTSComputeIJacobianFEM_Private() argument 1464 PetscCall(DMPlexTSComputeIJacobianFEM(dm, time, locX, locX_t, 0.0, Jac, JacP, user)); in DMPlexTSComputeIJacobianFEM_Private() 1467 PetscCall(MatDiagonalSet(JacP, work, ADD_VALUES)); in DMPlexTSComputeIJacobianFEM_Private() 1471 PetscCall(DMPlexTSComputeIJacobianFEM(dm, time, locX, locX_t, X_tShift, Jac, JacP, user)); in DMPlexTSComputeIJacobianFEM_Private()
|