Home
last modified time | relevance | path

Searched refs:mat_size (Results 1 – 2 of 2) sorted by relevance

/petsc/src/ksp/ksp/tests/
H A Dex53.c14 …PetscInt method = 2, mat_size = 40, block_size = 2, *A_indices = NULL, *B_indices = NULL, A_siz… in main() local
21 PetscCall(PetscOptionsGetInt(NULL, NULL, "-mat_size", &mat_size, NULL)); in main()
25 …ELF, " matrix size = %" PetscInt_FMT ", block size = %" PetscInt_FMT "\n", mat_size, block_size)); in main()
28 PetscCall(MatSetSizes(A, PETSC_DECIDE, PETSC_DECIDE, mat_size, mat_size)); in main()
36 if (i < mat_size - 1) PetscCall(MatSetValue(A, i, i + 1, -1, INSERT_VALUES)); in main()
/petsc/src/binding/petsc4py/demo/legacy/poisson3d/
H A Ddel2mat.py14 mat_size = A.getSize()
16 assert mat_size[0] == grid_eqs
17 assert mat_size[1] == grid_eqs