Home
last modified time | relevance | path

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

/petsc/src/mat/tests/
H A Dex139.c27 …PetscInt i, j, k, l, rstart, rend, m, n, top_bs, row_bs, col_bs, nlocblocks, *idx, n… in main() local
62 nlocblocks = (rend - rstart) / top_bs + 2; in main()
63 PetscCall(PetscMalloc1(nlocblocks, &idx)); in main()
64 for (i = 0; i < nlocblocks; i++) idx[i] = (rstart / top_bs + i - 1 + m / top_bs) % (m / top_bs); in main()
65 PetscCall(ISLocalToGlobalMappingCreate(comm, top_bs, nlocblocks, idx, PETSC_OWN_POINTER, &brmap)); in main()