Lines Matching refs:cnt
20 …PetscInt mwidth, nwidth, pwidth, cnt, mp, np, pp, Ntotal, gl[26], *globals, Ng, *IIi… in DMDAGetWireBasketInterpolation() local
74 cnt = 0; in DMDAGetWireBasketInterpolation()
76 xsurf[cnt++] = 1; in DMDAGetWireBasketInterpolation()
77 for (i = 1; i < m - istart - 1; i++) xsurf[cnt++ + Nsurf] = 1; in DMDAGetWireBasketInterpolation()
78 xsurf[cnt++ + 2 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
81 xsurf[cnt++ + 3 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
82 for (i = 1; i < m - istart - 1; i++) xsurf[cnt++ + 4 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
83 xsurf[cnt++ + 5 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
86 xsurf[cnt++ + 6 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
87 for (i = 1; i < m - istart - 1; i++) xsurf[cnt++ + 7 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
88 xsurf[cnt++ + 8 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
91 xsurf[cnt++ + 9 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
92 for (i = 1; i < m - istart - 1; i++) xsurf[cnt++ + 10 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
93 xsurf[cnt++ + 11 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
96 xsurf[cnt++ + 12 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
98 xsurf[cnt++ + 13 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
101 xsurf[cnt++ + 14 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
102 for (i = 1; i < m - istart - 1; i++) xsurf[cnt++ + 15 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
103 xsurf[cnt++ + 16 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
106 xsurf[cnt++ + 17 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
107 for (i = 1; i < m - istart - 1; i++) xsurf[cnt++ + 18 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
108 xsurf[cnt++ + 19 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
111 xsurf[cnt++ + 20 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
112 for (i = 1; i < m - istart - 1; i++) xsurf[cnt++ + 21 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
113 xsurf[cnt++ + 22 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
116 xsurf[cnt++ + 23 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
117 for (i = 1; i < m - istart - 1; i++) xsurf[cnt++ + 24 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
118 xsurf[cnt++ + 25 * Nsurf] = 1; in DMDAGetWireBasketInterpolation()
235 cnt = 0; in DMDAGetWireBasketInterpolation()
237 gl[cnt++] = 0; in DMDAGetWireBasketInterpolation()
239 gl[cnt++] = 1; in DMDAGetWireBasketInterpolation()
241 gl[cnt++] = m - istart - 1; in DMDAGetWireBasketInterpolation()
243 gl[cnt++] = mwidth; in DMDAGetWireBasketInterpolation()
245 gl[cnt++] = mwidth + 1; in DMDAGetWireBasketInterpolation()
247 gl[cnt++] = mwidth + m - istart - 1; in DMDAGetWireBasketInterpolation()
249 gl[cnt++] = mwidth * (n - jstart - 1); in DMDAGetWireBasketInterpolation()
251 gl[cnt++] = mwidth * (n - jstart - 1) + 1; in DMDAGetWireBasketInterpolation()
253 gl[cnt++] = mwidth * (n - jstart - 1) + m - istart - 1; in DMDAGetWireBasketInterpolation()
255 gl[cnt++] = mwidth * nwidth; in DMDAGetWireBasketInterpolation()
257 gl[cnt++] = mwidth * nwidth + 1; in DMDAGetWireBasketInterpolation()
259 gl[cnt++] = mwidth * nwidth + m - istart - 1; in DMDAGetWireBasketInterpolation()
261 gl[cnt++] = mwidth * nwidth + mwidth; /* these are the interior nodes */ in DMDAGetWireBasketInterpolation()
262 gl[cnt++] = mwidth * nwidth + mwidth + m - istart - 1; in DMDAGetWireBasketInterpolation()
264 gl[cnt++] = mwidth * nwidth + mwidth * (n - jstart - 1); in DMDAGetWireBasketInterpolation()
266 gl[cnt++] = mwidth * nwidth + mwidth * (n - jstart - 1) + 1; in DMDAGetWireBasketInterpolation()
268 gl[cnt++] = mwidth * nwidth + mwidth * (n - jstart - 1) + m - istart - 1; in DMDAGetWireBasketInterpolation()
270 gl[cnt++] = mwidth * nwidth * (p - kstart - 1); in DMDAGetWireBasketInterpolation()
272 gl[cnt++] = mwidth * nwidth * (p - kstart - 1) + 1; in DMDAGetWireBasketInterpolation()
274 gl[cnt++] = mwidth * nwidth * (p - kstart - 1) + m - istart - 1; in DMDAGetWireBasketInterpolation()
276 gl[cnt++] = mwidth * nwidth * (p - kstart - 1) + mwidth; in DMDAGetWireBasketInterpolation()
278 gl[cnt++] = mwidth * nwidth * (p - kstart - 1) + mwidth + 1; in DMDAGetWireBasketInterpolation()
280 gl[cnt++] = mwidth * nwidth * (p - kstart - 1) + mwidth + m - istart - 1; in DMDAGetWireBasketInterpolation()
282 gl[cnt++] = mwidth * nwidth * (p - kstart - 1) + mwidth * (n - jstart - 1); in DMDAGetWireBasketInterpolation()
284 gl[cnt++] = mwidth * nwidth * (p - kstart - 1) + mwidth * (n - jstart - 1) + 1; in DMDAGetWireBasketInterpolation()
286 gl[cnt++] = mwidth * nwidth * (p - kstart - 1) + mwidth * (n - jstart - 1) + m - istart - 1; in DMDAGetWireBasketInterpolation()
297 for (i = 0, cnt = 0; i < 26 * mp * np * pp; i++) { in DMDAGetWireBasketInterpolation()
303 ++cnt; in DMDAGetWireBasketInterpolation()
304 PetscCall(PetscHMapIIterSet(ht, it, cnt)); in DMDAGetWireBasketInterpolation()
307 …k(cnt == Ntotal, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Hash table size %" PetscInt_FMT " not equal to … in DMDAGetWireBasketInterpolation()
368 …PetscInt mwidth, nwidth, pwidth, cnt, mp, np, pp, Ntotal, gl[6], *globals, Ng, *IIin… in DMDAGetFaceInterpolation() local
422 cnt = 0; in DMDAGetFaceInterpolation()
424 for (i = 1; i < m - istart - 1; i++) xsurf[cnt++ + 0 * Nsurf] = 1; in DMDAGetFaceInterpolation()
428 for (i = 1; i < m - istart - 1; i++) xsurf[cnt++ + 1 * Nsurf] = 1; in DMDAGetFaceInterpolation()
430 xsurf[cnt++ + 2 * Nsurf] = 1; in DMDAGetFaceInterpolation()
432 xsurf[cnt++ + 3 * Nsurf] = 1; in DMDAGetFaceInterpolation()
434 for (i = 1; i < m - istart - 1; i++) xsurf[cnt++ + 4 * Nsurf] = 1; in DMDAGetFaceInterpolation()
437 for (i = 1; i < m - istart - 1; i++) xsurf[cnt++ + 5 * Nsurf] = 1; in DMDAGetFaceInterpolation()
557 cnt = 0; in DMDAGetFaceInterpolation()
559 gl[cnt++] = mwidth + 1; in DMDAGetFaceInterpolation()
563 gl[cnt++] = mwidth * nwidth + 1; in DMDAGetFaceInterpolation()
566 gl[cnt++] = mwidth * nwidth + mwidth; /* these are the interior nodes */ in DMDAGetFaceInterpolation()
567 gl[cnt++] = mwidth * nwidth + mwidth + m - istart - 1; in DMDAGetFaceInterpolation()
570 gl[cnt++] = mwidth * nwidth + mwidth * (n - jstart - 1) + 1; in DMDAGetFaceInterpolation()
574 gl[cnt++] = mwidth * nwidth * (p - kstart - 1) + mwidth + 1; in DMDAGetFaceInterpolation()
586 for (i = 0, cnt = 0; i < 6 * mp * np * pp; i++) { in DMDAGetFaceInterpolation()
592 ++cnt; in DMDAGetFaceInterpolation()
593 PetscCall(PetscHMapIIterSet(ht, it, cnt)); in DMDAGetFaceInterpolation()
596 …k(cnt == Ntotal, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Hash table size %" PetscInt_FMT " not equal to … in DMDAGetFaceInterpolation()