Searched refs:gindices (Results 1 – 6 of 6) sorted by relevance
| /petsc/src/vec/vec/tutorials/ |
| H A D | ex8.c | 14 PetscInt i, ng, *gindices, rstart, rend, M; in main() local 45 PetscCall(PetscMalloc1(ng, &gindices)); in main() 46 gindices[0] = rstart - 1; in main() 47 for (i = 0; i < ng - 1; i++) gindices[i + 1] = gindices[i] + 1; in main() 49 if (gindices[0] == -1) gindices[0] = M - 1; in main() 50 if (gindices[ng - 1] == M) gindices[ng - 1] = 0; in main() 53 …PetscCall(ISLocalToGlobalMappingCreate(PETSC_COMM_SELF, 1, ng, gindices, PETSC_COPY_VALUES, <og)… in main() 57 PetscCall(PetscFree(gindices)); in main()
|
| H A D | ex8f.F90 | 13 PetscInt, pointer, dimension(:) :: gindices 52 allocate (gindices(0:ng - 1)) 53 gindices(0) = rstart - 1 56 gindices(i + 1) = gindices(i) + 1 61 if (gindices(0) == -1) gindices(0) = M - 1 63 if (gindices(ng - 1) == M) gindices(ng - 1) = 0 65 …PetscCallA(ISLocalToGlobalMappingCreate(PETSC_COMM_SELF, 1_PETSC_INT_KIND, ng, gindices, PETSC_COP… 68 deallocate (gindices)
|
| /petsc/src/dm/impls/da/hypre/ |
| H A D | mhyp.h | 23 const PetscInt *gindices; member 44 const PetscInt *gindices; member
|
| H A D | mhyp.c | 53 row = ex->gindices[irow[i]] - ex->rstart; in MatSetValuesLocal_HYPREStruct_3d() 76 row = ex->gindices[irow[i]] - ex->rstart; in MatZeroRowsLocal_HYPREStruct_3d() 221 PetscCall(ISLocalToGlobalMappingGetIndices(ltog, (const PetscInt **)&ex->gindices)); in MatSetUp_HYPREStruct() 389 row = ex->gindices[grid_rank] - ex->rstart; in MatSetValuesLocal_HYPRESStruct_3d() 428 row = ex->gindices[grid_rank] - ex->rstart; in MatSetValuesLocal_HYPRESStruct_3d() 476 row = ex->gindices[grid_rank] - ex->rstart; in MatZeroRowsLocal_HYPRESStruct_3d() 487 row = ex->gindices[grid_rank] - ex->rstart; in MatZeroRowsLocal_HYPRESStruct_3d() 685 PetscCall(ISLocalToGlobalMappingGetIndices(ltog, (const PetscInt **)&ex->gindices)); in MatSetUp_HYPRESStruct() 796 PetscCall(ISLocalToGlobalMappingRestoreIndices(ltog, (const PetscInt **)&ex->gindices)); in MatDestroy_HYPRESStruct()
|
| /petsc/src/mat/impls/composite/ |
| H A D | mcomposite.c | 135 PetscInt i, j, k, n, nuniq, lo, hi, mid, *gindices, *buf, *tmp, tot; in MatMult_Composite() local 171 …PetscCall(PetscMalloc1(tot, &gindices)); /* No Malloc2() since we will give one to PETSc and free … in MatMult_Composite() 180 if (garray[i] < gindices[j]) buf[k++] = garray[i++]; in MatMult_Composite() 181 else if (garray[i] > gindices[j]) buf[k++] = gindices[j++]; in MatMult_Composite() 192 PetscCall(PetscArraycpy(buf + k, gindices + j, nuniq - j)); in MatMult_Composite() 196 tmp = gindices; in MatMult_Composite() 197 gindices = buf; in MatMult_Composite() 214 if (garray[i] < gindices[mid]) hi = mid; in MatMult_Composite() 224 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, nuniq, gindices, PETSC_OWN_POINTER, &ix)); in MatMult_Composite()
|
| /petsc/src/binding/petsc4py/demo/legacy/ode/ |
| H A D | heat.py | 23 gindices = ( 36 lgmap = PETSc.LGMap().create(list(gindices), comm=comm) 45 isg = PETSc.IS().createGeneral(list(gindices), comm=comm)
|