Lines Matching refs:compnum
1219 PetscErrorCode DMNetworkGetLocalVecOffset(DM dm, PetscInt p, PetscInt compnum, PetscInt *offset) in DMNetworkGetLocalVecOffset() argument
1227 if (compnum == ALL_COMPONENTS) { in DMNetworkGetLocalVecOffset()
1234 *offset = offsetp + header->offsetvarrel[compnum]; in DMNetworkGetLocalVecOffset()
1263 PetscErrorCode DMNetworkGetGlobalVecOffset(DM dm, PetscInt p, PetscInt compnum, PetscInt *offsetg) in DMNetworkGetGlobalVecOffset() argument
1273 if (compnum == ALL_COMPONENTS) { in DMNetworkGetGlobalVecOffset()
1279 *offsetg = offsetp + header->offsetvarrel[compnum]; in DMNetworkGetGlobalVecOffset()
1365 PetscInt compnum; in DMNetworkAddComponent() local
1427 compnum = header->ndata; in DMNetworkAddComponent()
1429 header->size[compnum] = component->size; in DMNetworkAddComponent()
1431 header->key[compnum] = componentkey; in DMNetworkAddComponent()
1432 …if (compnum != 0) header->offset[compnum] = header->offset[compnum - 1] + header->size[compnum - 1… in DMNetworkAddComponent()
1433 cvalue->data[compnum] = compvalue; in DMNetworkAddComponent()
1436 header->nvar[compnum] += nvar; in DMNetworkAddComponent()
1437 …if (compnum != 0) header->offsetvarrel[compnum] = header->offsetvarrel[compnum - 1] + header->nvar… in DMNetworkAddComponent()
1462 PetscErrorCode DMNetworkGetComponent(DM dm, PetscInt p, PetscInt compnum, PeOp PetscInt *compkey, P… in DMNetworkGetComponent() argument
1469 if (compnum == ALL_COMPONENTS) { in DMNetworkGetComponent()
1477 if (compnum >= 0) { in DMNetworkGetComponent()
1478 if (compkey) *compkey = header->key[compnum]; in DMNetworkGetComponent()
1480 offset += header->hsize + header->offset[compnum]; in DMNetworkGetComponent()
1485 if (nvar) *nvar = header->nvar[compnum]; in DMNetworkGetComponent()