/dports/science/PETSc/petsc-3.14.1/src/mat/tests/ |
H A D | ex226.c | 45 …if (i>0) {J = global_index(i-1,j,k,m,n); ierr = MatSetValues(A,1,&Ii,1,&J,&v,INSERT_VALUES);CHKE… in main() 46 …if (i<m-1) {J = global_index(i+1,j,k,m,n); ierr = MatSetValues(A,1,&Ii,1,&J,&v,INSERT_VALUES);CHKE… in main() 47 …if (j>0) {J = global_index(i,j-1,k,m,n); ierr = MatSetValues(A,1,&Ii,1,&J,&v,INSERT_VALUES);CHKE… in main() 49 v = 4.0; ierr = MatSetValues(A,1,&Ii,1,&Ii,&v,INSERT_VALUES);CHKERRQ(ierr); in main() 67 v = 8.0; ierr = MatSetValues(A,1,&Ii,1,&Ii,&v,INSERT_VALUES);CHKERRQ(ierr); in main() 85 v = 8.0; ierr = MatSetValues(A,1,&Ii,1,&Ii,&v,INSERT_VALUES);CHKERRQ(ierr); in main() 107 v = 12.0; ierr = MatSetValues(A,1,&Ii,1,&Ii,&v,INSERT_VALUES);CHKERRQ(ierr); in main() 124 v = 6.0; ierr = MatSetValues(A,1,&Ii,1,&Ii,&v,INSERT_VALUES);CHKERRQ(ierr); in main() 146 v = 12.0; ierr = MatSetValues(A,1,&Ii,1,&Ii,&v,INSERT_VALUES);CHKERRQ(ierr); in main() 176 v = 18.0; ierr = MatSetValues(A,1,&Ii,1,&Ii,&v,INSERT_VALUES);CHKERRQ(ierr); in main() [all …]
|
H A D | ex10.c | 27 if (i>0) {J = Ii - n; ierr = MatSetValues(C,1,&Ii,1,&J,&v,INSERT_VALUES);CHKERRQ(ierr);} in main() 28 if (i<m-1) {J = Ii + n; ierr = MatSetValues(C,1,&Ii,1,&J,&v,INSERT_VALUES);CHKERRQ(ierr);} in main() 29 if (j>0) {J = Ii - 1; ierr = MatSetValues(C,1,&Ii,1,&J,&v,INSERT_VALUES);CHKERRQ(ierr);} in main() 30 if (j<n-1) {J = Ii + 1; ierr = MatSetValues(C,1,&Ii,1,&J,&v,INSERT_VALUES);CHKERRQ(ierr);} in main() 31 v = 4.0; ierr = MatSetValues(C,1,&Ii,1,&Ii,&v,INSERT_VALUES);CHKERRQ(ierr); in main() 39 if (i>0) {J = Ii - n; ierr = MatSetValues(C,1,&Ii,1,&J,&v,INSERT_VALUES);CHKERRQ(ierr);} in main() 40 if (i<m-1) {J = Ii + n; ierr = MatSetValues(C,1,&Ii,1,&J,&v,INSERT_VALUES);CHKERRQ(ierr);} in main() 41 if (j>0) {J = Ii - 1; ierr = MatSetValues(C,1,&Ii,1,&J,&v,INSERT_VALUES);CHKERRQ(ierr);} in main() 42 if (j<n-1) {J = Ii + 1; ierr = MatSetValues(C,1,&Ii,1,&J,&v,INSERT_VALUES);CHKERRQ(ierr);} in main() 43 v = -4.0; ierr = MatSetValues(C,1,&Ii,1,&Ii,&v,INSERT_VALUES);CHKERRQ(ierr); in main()
|
/dports/science/PETSc/petsc-3.14.1/src/ksp/ksp/tests/ |
H A D | ex17.c | 106 ierr = MatSetValues(A,1,&i,3,col,val,INSERT_VALUES);CHKERRQ(ierr); in FormTestMatrix() 109 ierr = MatSetValues(A,1,&i,2,col,val,INSERT_VALUES);CHKERRQ(ierr); in FormTestMatrix() 111 ierr = MatSetValues(A,1,&i,2,col,val,INSERT_VALUES);CHKERRQ(ierr); in FormTestMatrix() 116 ierr = MatSetValues(A,1,&i,4,col,val,INSERT_VALUES);CHKERRQ(ierr); in FormTestMatrix() 119 ierr = MatSetValues(A,1,&i,3,col,val,INSERT_VALUES);CHKERRQ(ierr); in FormTestMatrix() 121 ierr = MatSetValues(A,1,&i,3,col,&val[1],INSERT_VALUES);CHKERRQ(ierr); in FormTestMatrix() 132 ierr = MatSetValues(A,1,&i,4,col,val,INSERT_VALUES);CHKERRQ(ierr); in FormTestMatrix() 134 ierr = MatSetValues(A,1,&i,3,col,val,INSERT_VALUES);CHKERRQ(ierr); in FormTestMatrix() 136 ierr = MatSetValues(A,1,&i,2,col,val,INSERT_VALUES);CHKERRQ(ierr); in FormTestMatrix() 170 ierr = MatSetValues(A,1,&Ii,1,&Ii,val,ADD_VALUES);CHKERRQ(ierr); in FormTestMatrix() [all …]
|
/dports/science/PETSc/petsc-3.14.1/src/mat/tests/output/ |
H A D | ex37_nsize-2_mat_type-baij_mat_block_size-1.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-1_mat_type-mpibaij_mat_block_size-2.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-1_mat_type-sbaij_mat_block_size-2.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-2_mat_type-mpibaij_mat_block_size-1.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-2_mat_type-sbaij_mat_block_size-1.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-1_mat_type-baij_mat_block_size-2.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-1_mat_type-mpisbaij_mat_block_size-1.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-1_mat_type-mpisbaij_mat_block_size-2.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-1_mat_type-sbaij_mat_block_size-1.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-2_mat_type-mpisbaij_mat_block_size-1.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-2_mat_type-sbaij_mat_block_size-2.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-2_mat_type-baij_mat_block_size-2.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-2_mat_type-mpibaij_mat_block_size-2.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-2_mat_type-mpisbaij_mat_block_size-2.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-1_mat_type-aij_mat_block_size-1.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-1_mat_type-baij_mat_block_size-1.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-1_mat_type-mpibaij_mat_block_size-1.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-1_mat_type-mpiaij_mat_block_size-1.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-2_mat_type-mpiaij_mat_block_size-2.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-2_mat_type-aij_mat_block_size-2.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-1_mat_type-aij_mat_block_size-2.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|
H A D | ex37_nsize-2_mat_type-aij_mat_block_size-1.out | 17 total number of mallocs used during MatSetValues calls=0 23 total number of mallocs used during MatSetValues calls=0 29 total number of mallocs used during MatSetValues calls=0 35 total number of mallocs used during MatSetValues calls=0 41 total number of mallocs used during MatSetValues calls=0 47 total number of mallocs used during MatSetValues calls=0 53 total number of mallocs used during MatSetValues calls=0 59 total number of mallocs used during MatSetValues calls=0 65 total number of mallocs used during MatSetValues calls=0 71 total number of mallocs used during MatSetValues calls=0 [all …]
|