Searched refs:bss (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/vec/vec/utils/ |
| H A D | vinv.c | 677 PetscInt i, n, n2, bs, j, k, *bss = NULL, nv, jj, nvc; in VecStrideGatherAll() local 691 PetscCall(PetscMalloc2(bs, &y, bs, &bss)); in VecStrideGatherAll() 695 PetscCall(VecGetBlockSize(s[i], &bss[i])); in VecStrideGatherAll() 696 …if (bss[i] < 1) bss[i] = 1; /* if user never set it then assume 1 Re: [PETSC #8241] VecStrideGath… in VecStrideGatherAll() 698 nvc += bss[i]; in VecStrideGatherAll() 709 for (k = 0; k < bss[j]; k++) { in VecStrideGatherAll() 710 for (i = 0; i < n; i++) y[j][i * bss[j] + k] = x[bs * i + jj + k]; in VecStrideGatherAll() 712 jj += bss[j]; in VecStrideGatherAll() 716 for (k = 0; k < bss[j]; k++) { in VecStrideGatherAll() 717 for (i = 0; i < n; i++) y[j][i * bss[j] + k] += x[bs * i + jj + k]; in VecStrideGatherAll() [all …]
|
| /petsc/src/dm/impls/da/ |
| H A D | grglvis.c | 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() [all …]
|