Lines Matching refs:garray2

244 +  n2          - size of garray2[], the merged set, which combines garray1[] and indices[]
245 . garray2[n2] - allocated by callee using PetscMalloc1(). Contains sorted unique global indices (without duplicates). Caller needs to free it.
246 . map[n1] - allocated by caller. It gives garray1[i] = garray2[map[i]]
247 - indices[m] - on output, global indices in this array are rewritten with local ones, i.e, indices_input[i] = garray2[indices_output[i]]
255 Combining them together, we have 7 global indices in garray2[]
257 garray2[7] = {1, 2, 4, 7, 8, 9, 10}
259 And we have map[] to connect "garray1[i] = garray2[map[i]], i=[0,n1)"
270 PetscInt n2, *garray2;
285 // Pull out (unique) globals in the hash table and put them in garray2[]
287 PetscCall(PetscMalloc1(n2, &garray2));
293 garray2[tot++] = key;
296 // Sort garray2[] and then map them to local indices starting from 0
297 PetscCall(PetscSortInt(n2, garray2));
299 for (PetscInt i = 0; i < tot; i++) PetscCall(PetscHMapISet(g2l, garray2[i], i)); // i is the local id
307 // Record the map that maps garray1[i] to garray2[map[i]]
311 *garray2_ = garray2;
335 + map[n1] - allocated by caller. It maps garray1[] to garray2[]. See more at ReduceTwoSetsOfGlobalIndices().
336 - mm - contains various info, such as garray2[], F (Fd, Fo) etc.
595 PetscInt n2, *garray2;
597 PetscCall(ReduceTwoSetsOfGlobalIndices(n1, garray1, Fonz, Foj, &n2, &garray2, map));
601 mm->garray = garray2; // give ownership, so no free
618 PetscCallCXX(mm->Fo = KokkosCsrMatrix("Fo", Fm, n2, Fonz, Foa_d, Foi_d, Foj_d)); // Fo's column size is n2, length of garray2[]
732 + map[n1] - allocated by caller. It maps garray1[] to garray2[]. See more at ReduceTwoSetsOfGlobalIndices.
733 - mm - contains various info, such as garray2[], Fd, Fo, etc.
906 PetscInt n2, *garray2;
907 PetscCall(ReduceTwoSetsOfGlobalIndices(n1, garray1, Fonz, Foj, &n2, &garray2, map));
920 mm->garray = garray2;