Home
last modified time | relevance | path

Searched refs:slice (Results 1 – 11 of 11) sorted by relevance

/petsc/src/dm/impls/sliced/
H A Dsliced.c21 DM_Sliced *slice = (DM_Sliced *)dm->data; in DMCreateMatrix_Sliced() local
24 bs = slice->bs; in DMCreateMatrix_Sliced()
26 PetscCall(MatSetSizes(*J, slice->n * bs, slice->n * bs, PETSC_DETERMINE, PETSC_DETERMINE)); in DMCreateMatrix_Sliced()
29 PetscCall(MatSeqBAIJSetPreallocation(*J, bs, slice->d_nz, slice->d_nnz)); in DMCreateMatrix_Sliced()
30 …PetscCall(MatMPIBAIJSetPreallocation(*J, bs, slice->d_nz, slice->d_nnz, slice->o_nz, slice->o_nnz)… in DMCreateMatrix_Sliced()
37 PetscCall(MatSeqAIJSetPreallocation(*J, slice->d_nz, slice->d_nnz)); in DMCreateMatrix_Sliced()
38 … PetscCall(MatMPIAIJSetPreallocation(*J, slice->d_nz, slice->d_nnz, slice->o_nz, slice->o_nnz)); in DMCreateMatrix_Sliced()
39 } else if (!slice->d_nnz) { in DMCreateMatrix_Sliced()
40 PetscCall(MatSeqAIJSetPreallocation(*J, slice->d_nz * bs, NULL)); in DMCreateMatrix_Sliced()
41 PetscCall(MatMPIAIJSetPreallocation(*J, slice->d_nz * bs, NULL, slice->o_nz * bs, NULL)); in DMCreateMatrix_Sliced()
[all …]
/petsc/src/dm/tutorials/output/
H A Dex22_1.out2 IS to select slice from 3D DMDA vector :
23 Extracted slice vector, in DMDA ordering :
44 Extracted slice vector, in natural ordering :
H A Dex22_2.out2 IS to select slice from 3D DMDA vector :
24 Extracted slice vector, in DMDA ordering :
46 Extracted slice vector, in natural ordering :
H A Dex22_3.out2 IS to select slice from 3D DMDA vector :
25 Extracted slice vector, in DMDA ordering :
48 Extracted slice vector, in natural ordering :
H A Dex22_5.out2 IS to select slice from 3D DMDA vector :
26 Extracted slice vector, in DMDA ordering :
50 Extracted slice vector, in natural ordering :
H A Dex22_4.out2 IS to select slice from 3D DMDA vector :
26 Extracted slice vector, in DMDA ordering :
50 Extracted slice vector, in natural ordering :
/petsc/src/dm/tests/
H A Dex30.c10 DM slice; in main() local
60 …PetscCall(DMSlicedCreate(comm, bs, n, 2, ghosts, d_nnz, o_nnz, &slice)); /* Currently does not cop… in main()
62 …if (!useblock) PetscCall(DMSlicedSetBlockFills(slice, dfill, ofill)); /* Irrelevant for baij forma… in main()
63 PetscCall(DMSetMatType(slice, mat_type)); in main()
64 PetscCall(DMCreateMatrix(slice, &A)); in main()
68 PetscCall(DMCreateGlobalVector(slice, &x)); in main()
157 PetscCall(DMDestroy(&slice)); in main()
/petsc/share/petsc/saws/js/
H A DrecordSawsData.js22 data[endtag].pc_type_alternatives = SAWs_alternatives.slice(); //deep copy of alternatives
70 data[endtag].ksp_type_alternatives = SAWs_alternatives.slice();//deep copy of alternatives
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscdmda.pxi303 if isinstance(index, slice):
309 return slice(start, stop, step)
H A Dpetscvec.pxi446 if isinstance(i, slice):
456 if isinstance(i, slice):
H A Dpetscmat.pxi1170 if isinstance(rows, slice):
1174 if isinstance(cols, slice):
1184 if isinstance(rows, slice):
1188 if isinstance(cols, slice):