| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex56.c | 93 const PetscInt NN = nn / NP, id0 = ipz * nn * nn * NN + ipy * nn * NN * NN + ipx * NN * NN * NN; in main() local 186 id = id0 + ii + NN * jj + NN * NN * kk; in main() 194 idx[2] = id + NN + 1; in main() 195 idx[3] = id + NN; in main() 196 idx[4] = id + NN * NN; in main() 197 idx[5] = id + 1 + NN * NN; in main() 198 idx[6] = id + NN + 1 + NN * NN; in main() 199 idx[7] = id + NN + NN * NN; in main() 203 idx[1] += NN * (NN * NN - 1); in main() 204 idx[2] += NN * (NN * NN - 1); in main() [all …]
|
| /petsc/src/ksp/ksp/tests/raja/ |
| H A D | ex1.raja.cxx | 113 int NN = (N + 2) * (N + 2); in main() local 127 double *I = memoryManager::allocate<double>(NN); in main() 128 double *Iold = memoryManager::allocate<double>(NN); in main() 130 memset(I, 0, NN * sizeof(double)); in main() 131 memset(Iold, 0, NN * sizeof(double)); in main() 157 for (int k = 0; k < NN; k++) { in main() 175 RAJA::RangeSegment gridRange(0, NN); in main() 183 memset(I, 0, NN * sizeof(double)); in main() 184 memset(Iold, 0, NN * sizeof(double)); in main() 225 memset(I, 0, NN * sizeof(double)); in main() [all …]
|
| /petsc/src/vec/vec/tests/ |
| H A D | ex17f.F90 | 12 PetscInt n, NN, low, high 31 NN = size*n 33 …allA(VecCreateFromOptions(PETSC_COMM_WORLD, PETSC_NULL_CHARACTER, ione, PETSC_DECIDE, NN, y, ierr)) 34 PetscCallA(VecCreateFromOptions(PETSC_COMM_SELF, PETSC_NULL_CHARACTER, ione, NN, NN, x, ierr)) 59 PetscCallA(ISCreateStride(PETSC_COMM_SELF, NN, first, stride, is1, ierr)) 60 PetscCallA(ISCreateStride(PETSC_COMM_SELF, NN, first, stride, is2, ierr))
|
| /petsc/src/sys/error/ |
| H A D | err.c | 493 PetscMPIInt *sizes, Ntotal, *displs, NN; in PetscIntViewNumColumns() local 496 PetscCall(PetscMPIIntCast(N, &NN)); in PetscIntViewNumColumns() 500 PetscCallMPI(MPI_Gather(&NN, 1, MPI_INT, NULL, 0, MPI_INT, 0, comm)); in PetscIntViewNumColumns() 501 PetscCallMPI(MPI_Gatherv(idx, NN, MPIU_INT, NULL, NULL, NULL, MPIU_INT, 0, comm)); in PetscIntViewNumColumns() 504 PetscCallMPI(MPI_Gather(&NN, 1, MPI_INT, sizes, 1, MPI_INT, 0, comm)); in PetscIntViewNumColumns() 513 PetscCallMPI(MPI_Gatherv(idx, NN, MPIU_INT, array, sizes, displs, MPIU_INT, 0, comm)); in PetscIntViewNumColumns() 601 PetscMPIInt *sizes, *displs, Ntotal, NN; in PetscRealViewNumColumns() local 604 PetscCall(PetscMPIIntCast(N, &NN)); in PetscRealViewNumColumns() 608 PetscCallMPI(MPI_Gather(&NN, 1, MPI_INT, NULL, 0, MPI_INT, 0, comm)); in PetscRealViewNumColumns() 609 PetscCallMPI(MPI_Gatherv(idx, NN, MPIU_REAL, NULL, NULL, NULL, MPIU_REAL, 0, comm)); in PetscRealViewNumColumns() [all …]
|
| /petsc/src/benchmarks/streams/ |
| H A D | MPIVersion.c | 21 PetscInt n = PETSC_DECIDE, NN; in main() local 27 NN = N; in main() 28 PetscCall(PetscSplitOwnership(MPI_COMM_WORLD, &n, &NN)); in main()
|
| /petsc/src/ts/tests/ |
| H A D | ex30.c | 398 PetscInt bs, NN; in PostStep() local 405 PetscCall(DMSwarmGetLocalSize(sw, &NN)); in PostStep() 407 for (PetscInt pp = 0; pp < NN; pp++) { in PostStep() 424 PetscInt bs, NN; in PostStep() local 426 PetscCall(DMSwarmGetLocalSize(sw, &NN)); in PostStep() 428 for (PetscInt pp = 0; pp < NN; pp++) { in PostStep() 566 …const PetscInt NNreal = Npi * Npj * Npk, NN = NNreal + (dim == 2 ? 3 : 6); // make room for boundi… in go() local 567 Np_t[grid][tid] = NN; in go() 568 if (glb_v_id == v_target) nTargetP[grid] = NN; in go() 569 …PetscCall(PetscMalloc4(NN, &xx_t[grid][tid], NN, &yy_t[grid][tid], NN, &wp_t[grid][tid], dim == 2 … in go() [all …]
|
| /petsc/src/ksp/pc/impls/redistribute/ |
| H A D | redistribute.c | 99 PetscInt NN; in PCSetUp_Redistribute() local 155 PetscCall(MatGetSize(pc->pmat, &NN, NULL)); in PCSetUp_Redistribute() 156 …" PetscInt_FMT ", percentage eliminated %g\n", NN - ncnt, (double)((PetscReal)(NN - ncnt) / (Petsc… in PCSetUp_Redistribute()
|
| /petsc/share/petsc/matlab/ |
| H A D | laplacian.m | 15 % values for the elements of B are 'DD', 'DN', 'ND', 'NN' and 'P'. 31 % [lambda,V,A] = laplacian([100,45,55],{'DD' 'NN' 'P'}, 20); 33 % laplacian([100,45,55],{'DD' 'NN' 'P'}, 20); 35 % lambda = laplacian([100,45,55],{'DD' 'NN' 'P'}, 20); 214 ' for 2D, 1 for 1D, with values ''DD'', ''DN'', ''ND'', ''NN''',...
|
| /petsc/src/mat/graphops/coarsen/impls/misk/ |
| H A D | misk.c | 300 PetscInt Istart, Iend, ncols, NN, MM, jj = 0, max_osz = 0; in MatCoarsenApply_MISK_private() local 326 PetscCall(MatGetSize(Gmat, &MM, &NN)); in MatCoarsenApply_MISK_private()
|
| /petsc/src/ksp/pc/impls/gamg/ |
| H A D | agg.c | 459 PetscInt bs, NN, MM; in PCSetData_AGG() local 462 PetscCall(MatGetLocalSize(a_A, &MM, &NN)); in PCSetData_AGG() 723 PetscInt Istart, Iend, ncols, nnz0, nnz1, NN, MM, nloc; in PCGAMGCreateGraph_AGG() local 745 PetscCall(MatGetSize(Gmat, &MM, &NN)); in PCGAMGCreateGraph_AGG()
|
| /petsc/src/mat/graphops/coarsen/impls/hem/ |
| H A D | hem.c | 1105 PetscInt NN, MM, jj = 0, mxsz = 0; in MatCoarsenApply_HEM_private() local 1111 PetscCall(MatGetSize(a_Gmat, &MM, &NN)); in MatCoarsenApply_HEM_private()
|
| /petsc/src/mat/impls/aij/mpi/ |
| H A D | mpiaij.c | 7735 PetscInt Istart, Iend, Ii, jj, kk, ncols, nloc, NN, MM, bs; in MatCreateGraph_Simple_AIJ() local 7745 PetscCall(MatGetSize(Amat, &MM, &NN)); in MatCreateGraph_Simple_AIJ() 7934 if (o_nnz[jj] > (NN / bs - nloc)) o_nnz[jj] = NN / bs - nloc; in MatCreateGraph_Simple_AIJ()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | PC.pyx | 23 NN = S_(PCNN) variable in PCType
|