Lines Matching refs:napp
266 static PetscErrorCode AOCreateMemoryScalable_private(MPI_Comm comm, PetscInt napp, const PetscInt f… in AOCreateMemoryScalable_private() argument
279 PetscInt n = napp, ip, ia; in AOCreateMemoryScalable_private()
389 PetscInt napp, n_local, N, i, start, *petsc, *lens, *disp; in AOCreate_MemoryScalable() local
408 PetscCall(ISGetLocalSize(isapp, &napp)); in AOCreate_MemoryScalable()
409 PetscCallMPI(MPI_Allgather(&napp, 1, MPIU_INT, lens, 1, MPIU_INT, comm)); in AOCreate_MemoryScalable()
418 if (napp) { in AOCreate_MemoryScalable()
421 PetscCall(PetscMalloc1(napp + 1, &petsc)); in AOCreate_MemoryScalable()
422 for (i = 0; i < napp; i++) petsc[i] = start + i; in AOCreate_MemoryScalable()
446 PetscCall(AOCreateMemoryScalable_private(comm, napp, petsc, myapp, ao, aomems->app_loc)); in AOCreate_MemoryScalable()
447 PetscCall(AOCreateMemoryScalable_private(comm, napp, myapp, petsc, ao, aomems->petsc_loc)); in AOCreate_MemoryScalable()
450 if (napp) { in AOCreate_MemoryScalable()
484 PetscErrorCode AOCreateMemoryScalable(MPI_Comm comm, PetscInt napp, const PetscInt myapp[], const P… in AOCreateMemoryScalable() argument
490 PetscCall(ISCreateGeneral(comm, napp, app, PETSC_USE_POINTER, &isapp)); in AOCreateMemoryScalable()
492 PetscCall(ISCreateGeneral(comm, napp, petsc, PETSC_USE_POINTER, &ispetsc)); in AOCreateMemoryScalable()