Home
last modified time | relevance | path

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

/petsc/src/mat/tests/
H A Dex18.c11 PetscInt *boundary_nodes, nboundary_nodes, *boundary_indices; in main() local
121 PetscCall(PetscMalloc1(nboundary_nodes, &boundary_nodes)); in main()
123 for (i = size; i < m; i++, k++) boundary_nodes[k] = n * i; in main()
126 PetscCall(PetscMalloc1(nboundary_nodes, &boundary_nodes)); in main()
127 boundary_nodes[0] = rank * n; in main()
131 PetscCall(PetscMalloc1(nboundary_nodes, &boundary_nodes)); in main()
134 for (j = nlocal * rank; j < nlocal * (rank + 1); j++, k++) boundary_nodes[k] = j; in main()
137 PetscCall(PetscMalloc1(m * n, &boundary_nodes)); in main()
141 if (Ii >= rank * m * nlocal && Ii < (rank + 1) * m * nlocal) boundary_nodes[k++] = Ii; in main()
145 if (Ii >= rank * m * nlocal && Ii < (rank + 1) * m * nlocal) boundary_nodes[k++] = Ii; in main()
[all …]