:orphan: # DMNetworkRegisterComponent Registers the network component ## Synopsis ``` #include "petscdmnetwork.h" PetscErrorCode DMNetworkRegisterComponent(DM dm, const char *name, size_t size, PetscInt *key) ``` Logically Collective ## Input Parameters - ***dm -*** the `DMNETWORK` object - ***name -*** the component name - ***size -*** the storage size in bytes for this component data ## Output Parameter - ***key -*** an integer key that defines the component ## Note This routine should be called by all processors before calling `DMNetworkLayoutSetup()`. ## See Also `DM`, `DMNETWORK`, `DMNetworkCreate()`, `DMNetworkLayoutSetUp()` ## 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)