Searched refs:e_loc (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex71.c | 214 const PetscInt *e_loc; /* Local indices of element nodes (in local element order) */ in main() local 267 PetscCall(DMDAGetElements(da, &nel, &nen, &e_loc)); in main() 270 PetscCall(ISLocalToGlobalMappingApplyBlock(map, nen * nel, e_loc, e_glo)); in main() 279 PetscCall(ISLocalToGlobalMappingApplyBlock(map, nen * nel, e_loc, el_glo)); in main() 320 for (j = 0; j < nen; j++) idxs[j] = e_loc[i * nen + ord[j]]; in main() 328 PetscCall(DMDARestoreElements(da, &nel, &nen, &e_loc)); in main()
|
| /petsc/src/dm/impls/da/ |
| H A D | fdda.c | 766 const PetscInt *e_loc, *idx; in DMCreateMatrix_DA_IS() local 779 …PetscCall(DMDAGetElements(dm, &nel, &nen, &e_loc)); /* this will throw an error if the stencil typ… in DMCreateMatrix_DA_IS() 780 for (i = 0; i < nel * nen; i++) PetscCall(PetscBTSet(bt, e_loc[i])); in DMCreateMatrix_DA_IS() 810 … = 0; i < nel; i++) PetscCall(MatSetValuesBlockedLocal(P, nen, e_loc + i * nen, nen, e_loc + i * n… in DMCreateMatrix_DA_IS() 813 PetscCall(DMDARestoreElements(dm, &nel, &nen, &e_loc)); in DMCreateMatrix_DA_IS()
|