Home
last modified time | relevance | path

Searched refs:dnzu (Results 1 – 3 of 3) sorted by relevance

/petsc/src/mat/impls/preallocator/
H A Dmatpreallocator.c7 PetscInt *dnzu, *onzu; member
19 PetscCall(PetscFree4(p->dnz, p->onz, p->dnzu, p->onzu)); in MatDestroy_Preallocator()
41 PetscCall(PetscCalloc4(mbs, &p->dnz, mbs, &p->onz, mbs, &p->dnzu, mbs, &p->onzu)); in MatSetUp_Preallocator()
71 if (key.j >= key.i) ++p->dnzu[key.i - rStart / bs]; in MatSetValues_Preallocator()
148 PetscCall(MatXAIJSetPreallocation(A, bs, p->dnz, p->onz, p->dnzu, p->onzu)); in MatPreallocatorPreallocate_Preallocator()
266 p->dnzu = NULL; in MatCreate_Preallocator()
/petsc/src/dm/impls/plex/
H A Dplexpreallocate.c701 …ectionAdj, const PetscInt cols[], PetscInt dnz[], PetscInt onz[], PetscInt dnzu[], PetscInt onzu[]) in DMPlexUpdateAllocation_Static() argument
725 if (cols[c] >= r) ++dnzu[r - rStart]; in DMPlexUpdateAllocation_Static()
744 if (cols[c] >= row) ++dnzu[r - rStart / bs]; in DMPlexUpdateAllocation_Static()
754 dnzu[r] /= bs; in DMPlexUpdateAllocation_Static()
824 …cateOperator(DM dm, PetscInt bs, PetscInt dnz[], PetscInt onz[], PetscInt dnzu[], PetscInt onzu[],… in DMPlexPreallocateOperator() argument
843 if (dnzu) PetscAssertPointer(dnzu, 5); in DMPlexPreallocateOperator()
884 …lexUpdateAllocation_Static(dm, rLayout, bs, -1, sectionAdj[idx], cols[idx], dnz, onz, dnzu, onzu)); in DMPlexPreallocateOperator()
890 …PlexUpdateAllocation_Static(dm, rLayout, bs, f, sectionAdj[idx], cols[idx], dnz, onz, dnzu, onzu)); in DMPlexPreallocateOperator()
895 PetscCall(MatXAIJSetPreallocation(A, bs, dnz, onz, dnzu, onzu)); in DMPlexPreallocateOperator()
929 …ion, PetscSection sectionGlobal, PetscInt dnz[], PetscInt onz[], PetscInt dnzu[], PetscInt onzu[],…
H A Dplex.c2930 PetscInt *dnz, *onz, *dnzu, *onzu, bsLocal[2], bsMinMax[2], *pblocks; in DMCreateMatrix_Plex() local
3008 …PetscCall(PetscCalloc4(localSize / bs, &dnz, localSize / bs, &onz, localSize / bs, &dnzu, localSiz… in DMCreateMatrix_Plex()
3009 PetscCall(DMPlexPreallocateOperator(dm, bs, dnz, onz, dnzu, onzu, *J, fillMatrix)); in DMCreateMatrix_Plex()
3010 PetscCall(PetscFree4(dnz, onz, dnzu, onzu)); in DMCreateMatrix_Plex()