| /petsc/src/mat/graphops/order/ |
| H A D | fndsep.c | 34 …const PetscInt *adjncy, PetscInt *mask, PetscInt *nsep, PetscInt *sep, PetscInt *xls, PetscInt *ls) in SPARSEPACKfndsep() argument 48 --xls; in SPARSEPACKfndsep() 54 PetscCall(SPARSEPACKfnroot(root, &xadj[1], &adjncy[1], &mask[1], &nlvl, &xls[1], &ls[1])); in SPARSEPACKfndsep() 58 *nsep = xls[nlvl + 1] - 1; in SPARSEPACKfndsep() 69 midbeg = xls[midlvl]; in SPARSEPACKfndsep() 70 mp1beg = xls[midlvl + 1]; in SPARSEPACKfndsep() 72 mp1end = xls[midlvl + 2] - 1; in SPARSEPACKfndsep()
|
| H A D | fnroot.c | 32 …etscInt *xadj, const PetscInt *adjncy, PetscInt *mask, PetscInt *nlvl, PetscInt *xls, PetscInt *ls) in SPARSEPACKfnroot() argument 44 --xls; in SPARSEPACKfnroot() 49 PetscCall(SPARSEPACKrootls(root, &xadj[1], &adjncy[1], &mask[1], nlvl, &xls[1], &ls[1])); in SPARSEPACKfnroot() 50 ccsize = xls[*nlvl + 1] - 1; in SPARSEPACKfnroot() 55 jstrt = xls[*nlvl]; in SPARSEPACKfnroot() 77 PetscCall(SPARSEPACKrootls(root, &xadj[1], &adjncy[1], &mask[1], &nunlvl, &xls[1], &ls[1])); in SPARSEPACKfnroot()
|
| H A D | fn1wd.c | 30 …adjncy, PetscInt *mask, PetscInt *nsep, PetscInt *sep, PetscInt *nlvl, PetscInt *xls, PetscInt *ls) in SPARSEPACKfn1wd() argument 47 --xls; in SPARSEPACKfn1wd() 53 PetscCall(SPARSEPACKfnroot(root, &xadj[1], &adjncy[1], &mask[1], nlvl, &xls[1], &ls[1])); in SPARSEPACKfn1wd() 55 *nsep = xls[*nlvl + 1] - 1; in SPARSEPACKfn1wd() 77 lvlbeg = xls[lvl]; in SPARSEPACKfn1wd() 78 lp1beg = xls[lvl + 1]; in SPARSEPACKfn1wd() 80 lp1end = xls[lvl + 2] - 1; in SPARSEPACKfn1wd()
|
| H A D | genrcm.c | 36 …neqns, const PetscInt *xadj, const PetscInt *adjncy, PetscInt *perm, PetscInt *mask, PetscInt *xls) in SPARSEPACKgenrcm() argument 50 xls[0] = 1; in SPARSEPACKgenrcm() 55 --xls; in SPARSEPACKgenrcm() 74 PetscCall(SPARSEPACKfnroot(&root, &xadj[1], &adjncy[1], &mask[1], &nlvl, &xls[1], &perm[num])); in SPARSEPACKgenrcm() 75 PetscCall(SPARSEPACKrcm(&root, &xadj[1], &adjncy[1], &mask[1], &perm[num], &ccsize, &xls[1])); in SPARSEPACKgenrcm()
|
| H A D | gen1wd.c | 30 …jncy, PetscInt *mask, PetscInt *nblks, PetscInt *xblk, PetscInt *perm, PetscInt *xls, PetscInt *ls) in SPARSEPACKgen1wd() argument 43 --xls; in SPARSEPACKgen1wd() 59 …SEPACKfn1wd(&root, &xadj[1], &adjncy[1], &mask[1], &nsep, &perm[num + 1], &nlvl, &xls[1], &ls[1])); in SPARSEPACKgen1wd() 63 ccsize = xls[nlvl + 1] - 1; in SPARSEPACKgen1wd() 71 …PetscCall(SPARSEPACKrootls(&node, &xadj[1], &adjncy[1], &mask[1], &nlvl, &xls[1], &perm[num + 1])); in SPARSEPACKgen1wd() 73 num = num + xls[nlvl + 1] - 1; in SPARSEPACKgen1wd()
|
| H A D | sprcm.c | 9 PetscInt i, *mask, *xls, nrow, *perm; in MatGetOrdering_RCM() local 17 PetscCall(PetscMalloc3(nrow, &mask, nrow, &perm, 2 * nrow, &xls)); in MatGetOrdering_RCM() 18 PetscCall(SPARSEPACKgenrcm(&nrow, ia, ja, perm, mask, xls)); in MatGetOrdering_RCM() 25 PetscCall(PetscFree3(mask, perm, xls)); in MatGetOrdering_RCM()
|
| H A D | sp1wd.c | 9 PetscInt i, *mask, *xls, nblks, *xblk, *ls, nrow, *perm; in MatGetOrdering_1WD() local 17 PetscCall(PetscMalloc5(nrow, &mask, nrow + 1, &xls, nrow, &ls, nrow + 1, &xblk, nrow, &perm)); in MatGetOrdering_1WD() 18 PetscCall(SPARSEPACKgen1wd(&nrow, ia, ja, mask, &nblks, xblk, perm, xls, ls)); in MatGetOrdering_1WD() 25 PetscCall(PetscFree5(mask, xls, ls, xblk, perm)); in MatGetOrdering_1WD()
|
| H A D | rootls.c | 24 …etscInt *xadj, const PetscInt *adjncy, PetscInt *mask, PetscInt *nlvl, PetscInt *xls, PetscInt *ls) in SPARSEPACKrootls() argument 37 --xls; in SPARSEPACKrootls() 53 xls[*nlvl] = lbegin; in SPARSEPACKrootls() 78 xls[*nlvl + 1] = lvlend + 1; in SPARSEPACKrootls()
|
| H A D | spnd.c | 9 PetscInt i, *mask, *xls, *ls, nrow, *perm; in MatGetOrdering_ND() local 21 PetscCall(PetscMalloc4(nrow, &mask, nrow, &perm, nrow + 1, &xls, nrow, &ls)); in MatGetOrdering_ND() 22 PetscCall(SPARSEPACKgennd(&nrow, ia, ja, mask, perm, xls, ls)); in MatGetOrdering_ND() 35 PetscCall(PetscFree4(mask, perm, xls, ls)); in MatGetOrdering_ND()
|
| H A D | gennd.c | 54 …etscInt *xadj, const PetscInt *adjncy, PetscInt *mask, PetscInt *perm, PetscInt *xls, PetscInt *ls) in SPARSEPACKgennd() argument 66 --xls; in SPARSEPACKgennd() 82 …PetscCall(SPARSEPACKfndsep(&root, &xadj[1], &adjncy[1], &mask[1], &nsep, &perm[num + 1], &xls[1], … in SPARSEPACKgennd()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexreorder.c | 72 …PetscInt *start = NULL, *adjacency = NULL, *cperm, *clperm = NULL, *invclperm = NULL, *mask, *xls,… in DMPlexGetOrdering() local 78 PetscCall(PetscMalloc3(numCells, &cperm, numCells, &mask, numCells * 2, &xls)); in DMPlexGetOrdering() 83 PetscCall(SPARSEPACKgenrcm(&numCells, start, adjacency, cperm, mask, xls)); in DMPlexGetOrdering() 128 PetscCall(PetscFree3(cperm, mask, xls)); in DMPlexGetOrdering()
|