Home
last modified time | relevance | path

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

/petsc/src/dm/impls/plex/
H A Dplex.c2930 PetscInt *dnz, *onz, *dnzu, *onzu, bsLocal[2], bsMinMax[2], *pblocks; in DMCreateMatrix_Plex() local
2937 PetscCall(PetscCalloc1(localSize, &pblocks)); in DMCreateMatrix_Plex()
2957 for (PetscInt i = 0; i < dof - cdof; ++i) pblocks[offset - localStart + i] = dof - cdof; in DMCreateMatrix_Plex()
2959 … if (bstate == PETSC_BOOL3_FALSE && dof - cdof) pblocks[offset - localStart] = -(dof - cdof); in DMCreateMatrix_Plex()
2981 …for (PetscInt i = 0; i < dof - cdof; i++) pblocks[offset - localStart + i] = (dof - cdof) / num_no… in DMCreateMatrix_Plex()
3012 if (pblocks) { // Consolidate blocks in DMCreateMatrix_Plex()
3014 pblocks[0] = PetscAbs(pblocks[0]); in DMCreateMatrix_Plex()
3015 for (PetscInt i = 0; i < localSize; i += PetscMax(1, pblocks[i])) { in DMCreateMatrix_Plex()
3016 if (pblocks[i] == 0) continue; in DMCreateMatrix_Plex()
3018 if (pblocks[i] < 0) { in DMCreateMatrix_Plex()
[all …]