Lines Matching refs:bss
96 PetscInt i, f, ii, ien, jen, ken, ie, je, ke, bs, *bss, *nfs; in DMDASampleGLVisFields_Private() local
116 PetscCall(PetscMalloc3(nf, &arrayf, nf, &bss, nf, &nfs)); in DMDASampleGLVisFields_Private()
119 PetscCall(VecGetBlockSize((Vec)oXf[f], &bss[f])); in DMDASampleGLVisFields_Private()
130 for (b = 0; b < bss[f]; b++) arrayf[f][bss[f] * ii + b] = array[i * bs + cf++]; in DMDASampleGLVisFields_Private()
138 PetscCall(PetscFree3(arrayf, bss, nfs)); in DMDASampleGLVisFields_Private()
251 PetscInt *nlocal, *bss, *dims; in DMSetUpGLVisViewer_DMDA() local
261 …PetscCall(PetscMalloc6(dof, &fec_type, dof, &nlocal, dof, &bss, dof, &dims, dof, &fieldname, dof, … in DMSetUpGLVisViewer_DMDA()
262 for (i = 0; i < dof; i++) bss[i] = 1; in DMSetUpGLVisViewer_DMDA()
266 …vis_dm_da_bs", "Block sizes for subfields; enable vector representation", NULL, bss, &nf, &bsset)); in DMSetUpGLVisViewer_DMDA()
270 for (i = 0, t = 0; i < nf; i++) t += bss[i]; in DMSetUpGLVisViewer_DMDA()
276 if (bss[i] == 1) { in DMSetUpGLVisViewer_DMDA()
281 const PetscInt bss_i = bss[i]; in DMSetUpGLVisViewer_DMDA()
308 nlocal[i] = M * N * P * bss[i]; in DMSetUpGLVisViewer_DMDA()
309 s += bss[i]; in DMSetUpGLVisViewer_DMDA()
320 PetscCall(VecSetBlockSize(Ufield[i], PetscMax(bss[i], 1))); in DMSetUpGLVisViewer_DMDA()
330 PetscCall(PetscFree6(fec_type, nlocal, bss, dims, fieldname, Ufield)); in DMSetUpGLVisViewer_DMDA()