| /petsc/src/mat/tests/ |
| H A D | ex231.cxx | 30 const unsigned int n_dofs = 26559; in main() local 88 std::vector<std::set<unsigned int>> sparsity(n_dofs); in main() 130 PetscCall(MatSetSizes(mat, n_local_dofs, n_local_dofs, n_dofs, n_dofs)); in main()
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex49.c | 307 PetscInt n_dofs, d; in DMDAViewGnuplot2d() local 317 PetscCall(DMDAGetInfo(da, 0, 0, 0, 0, 0, 0, 0, &n_dofs, 0, 0, 0, 0, 0)); in DMDAViewGnuplot2d() 319 for (d = 0; d < n_dofs; d++) { in DMDAViewGnuplot2d() 344 for (d = 0; d < n_dofs; d++) { in DMDAViewGnuplot2d() 345 field_d = _fields[n_dofs * ((i - si) + (j - sj) * (nx)) + d]; in DMDAViewGnuplot2d() 369 PetscInt n_dofs, d; in DMDAViewCoefficientsGnuplot2d() local 379 PetscCall(DMDAGetInfo(da, 0, 0, 0, 0, 0, 0, 0, &n_dofs, 0, 0, 0, 0, 0)); in DMDAViewCoefficientsGnuplot2d() 381 for (d = 0; d < n_dofs; d++) { in DMDAViewCoefficientsGnuplot2d() 1060 PetscInt n_dofs; in BCApply_EAST() local 1072 PetscCall(DMDAGetInfo(da, 0, &M, &N, 0, 0, 0, 0, &n_dofs, 0, 0, 0, 0, 0)); in BCApply_EAST() [all …]
|
| H A D | ex43.c | 359 PetscInt n_dofs, d; in DMDAViewGnuplot2d() local 369 PetscCall(DMDAGetInfo(da, 0, 0, 0, 0, 0, 0, 0, &n_dofs, 0, 0, 0, 0, 0)); in DMDAViewGnuplot2d() 371 for (d = 0; d < n_dofs; d++) { in DMDAViewGnuplot2d() 397 for (d = 0; d < n_dofs; d++) { in DMDAViewGnuplot2d() 398 field_d = _fields[n_dofs * ((i - si) + (j - sj) * (nx)) + d]; in DMDAViewGnuplot2d() 421 PetscInt n_dofs, d; in DMDAViewCoefficientsGnuplot2d() local 431 PetscCall(DMDAGetInfo(da, 0, 0, 0, 0, 0, 0, 0, &n_dofs, 0, 0, 0, 0, 0)); in DMDAViewCoefficientsGnuplot2d() 433 for (d = 0; d < n_dofs; d++) { in DMDAViewCoefficientsGnuplot2d() 1642 PetscInt n_dofs; in BCApplyZero_EAST() local 1653 PetscCall(DMDAGetInfo(da, 0, &M, &N, 0, 0, 0, 0, &n_dofs, 0, 0, 0, 0, 0)); in BCApplyZero_EAST() [all …]
|
| H A D | ex70.c | 1296 PetscInt n_dofs; in BCApplyZero_EAST() local 1307 PetscCall(DMDAGetInfo(da, 0, &M, &N, 0, 0, 0, 0, &n_dofs, 0, 0, 0, 0, 0)); in BCApplyZero_EAST() 1309 PetscCall(PetscMalloc1(ny * n_dofs, &bc_global_ids)); in BCApplyZero_EAST() 1310 PetscCall(PetscMalloc1(ny * n_dofs, &bc_vals)); in BCApplyZero_EAST() 1313 for (i = 0; i < ny * n_dofs; i++) bc_global_ids[i] = -1; in BCApplyZero_EAST() 1321 bc_global_ids[j] = g_idx[n_dofs * local_id + d_idx]; in BCApplyZero_EAST() 1354 PetscInt n_dofs; in BCApplyZero_WEST() local 1365 PetscCall(DMDAGetInfo(da, 0, &M, &N, 0, 0, 0, 0, &n_dofs, 0, 0, 0, 0, 0)); in BCApplyZero_WEST() 1367 PetscCall(PetscMalloc1(ny * n_dofs, &bc_global_ids)); in BCApplyZero_WEST() 1368 PetscCall(PetscMalloc1(ny * n_dofs, &bc_vals)); in BCApplyZero_WEST() [all …]
|