:orphan: # DMNetworkGetComponent Gets the component key, the component data, and the number of variables at a given network point ## Synopsis ``` #include "petscdmnetwork.h" PetscErrorCode DMNetworkGetComponent(DM dm, PetscInt p, PetscInt compnum, PetscInt *compkey, void **component, PetscInt *nvar) ``` Not Collective ## Input Parameters - ***dm -*** the `DMNETWORK` object - ***p -*** vertex/edge point - ***compnum -*** component number; use ALL_COMPONENTS if sum up all the components ## Output Parameters - ***compkey -*** the key obtained when registering the component (use `NULL` if not required) - ***component -*** the component data (use `NULL` if not required) - ***nvar -*** number of variables (use `NULL` if not required) ## See Also `DM`, `DMNETWORK`, `DMNetworkAddComponent()`, `DMNetworkGetNumComponents()` ## Level beginner ## Location src/dm/impls/network/network.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/network/network.c) [Index of all DMNetwork routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)