https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Functions
NonlinearSystemBase.C File Reference

Go to the source code of this file.

Functions

EXTERN_C_BEGIN PetscErrorCode DMCreate_Moose (DM)
 

Function Documentation

◆ DMCreate_Moose()

EXTERN_C_BEGIN PetscErrorCode DMCreate_Moose ( DM  dm)
extern

Definition at line 2080 of file PetscDMMoose.C.

2081{
2082 DM_Moose * dmm;
2083
2085 PetscValidHeaderSpecific(dm, DM_CLASSID, 1);
2086#if PETSC_RELEASE_LESS_THAN(3, 18, 0)
2087 LibmeshPetscCallQ(PetscNewLog(dm, &dmm));
2088#else // PetscNewLog was deprecated
2089 LibmeshPetscCallQ(PetscNew(&dmm));
2090#endif
2091 dm->data = dmm;
2092
2093 dmm->_name = new (std::string);
2094 dmm->_var_ids = new (std::map<std::string, unsigned int>);
2095 dmm->_block_ids = new (std::map<std::string, subdomain_id_type>);
2096 dmm->_var_names = new (std::map<unsigned int, std::string>);
2097 dmm->_block_names = new (std::map<unsigned int, std::string>);
2098 dmm->_side_ids = new (std::map<std::string, BoundaryID>);
2099 dmm->_side_names = new (std::map<BoundaryID, std::string>);
2100 dmm->_unside_ids = new (std::map<std::string, BoundaryID>);
2101 dmm->_unside_names = new (std::map<BoundaryID, std::string>);
2102 dmm->_unside_by_var_set = new (std::set<std::pair<BoundaryID, unsigned int>>);
2103 dmm->_contact_names = new (std::map<DM_Moose::ContactID, DM_Moose::ContactName>);
2104 dmm->_uncontact_names = new (std::map<DM_Moose::ContactID, DM_Moose::ContactName>);
2105 dmm->_contact_displaced = new (std::map<DM_Moose::ContactName, PetscBool>);
2106 dmm->_uncontact_displaced = new (std::map<DM_Moose::ContactName, PetscBool>);
2107
2108 dmm->_splits = new (std::map<std::string, DM_Moose::SplitInfo>);
2109
2110 dmm->_print_embedding = PETSC_FALSE;
2111
2112 dm->ops->createglobalvector = DMCreateGlobalVector_Moose;
2113 dm->ops->createlocalvector = 0; // DMCreateLocalVector_Moose;
2114 dm->ops->getcoloring = 0; // DMGetColoring_Moose;
2115 dm->ops->creatematrix = DMCreateMatrix_Moose;
2116 dm->ops->createinterpolation = 0; // DMCreateInterpolation_Moose;
2117
2118 dm->ops->refine = 0; // DMRefine_Moose;
2119 dm->ops->coarsen = 0; // DMCoarsen_Moose;
2120#if PETSC_RELEASE_LESS_THAN(3, 12, 0)
2121 dm->ops->getinjection = 0; // DMGetInjection_Moose;
2122 dm->ops->getaggregates = 0; // DMGetAggregates_Moose;
2123#else
2124 dm->ops->createinjection = 0;
2125#endif
2126
2127 dm->ops->createfielddecomposition = DMCreateFieldDecomposition_Moose;
2128 dm->ops->createdomaindecomposition = DMCreateDomainDecomposition_Moose;
2129
2130 dm->ops->destroy = DMDestroy_Moose;
2131 dm->ops->view = DMView_Moose;
2132 dm->ops->setfromoptions = DMSetFromOptions_Moose;
2133 dm->ops->setup = DMSetUp_Moose;
2134 PetscFunctionReturn(PETSC_SUCCESS);
2135}
PetscErrorCode PetscOptionItems *PetscErrorCode DM dm
static PetscErrorCode DMCreateGlobalVector_Moose(DM dm, Vec *x)
static PetscErrorCode DMCreateDomainDecomposition_Moose(DM dm, PetscInt *len, char ***namelist, IS **innerislist, IS **outerislist, DM **dmlist)
static PetscErrorCode DMView_Moose(DM dm, PetscViewer viewer)
static PetscErrorCode DMDestroy_Moose(DM dm)
static PetscErrorCode DMSetUp_Moose(DM dm)
PetscFunctionBegin
static PetscErrorCode DMCreateMatrix_Moose(DM dm, Mat *A)
static PetscErrorCode DMCreateFieldDecomposition_Moose(DM dm, PetscInt *len, char ***namelist, IS **islist, DM **dmlist)
PetscErrorCode DMSetFromOptions_Moose(DM dm, PetscOptionItems) PetscErrorCode DMSetFromOptions_Moose(DM dm
PetscFunctionReturn(LIBMESH_PETSC_SUCCESS)
LibmeshPetscCallQ(DMShellGetContext(dm, &ctx))
std::string * _name
The name of this DM.
std::map< BoundaryID, std::string > * _side_names
std::map< std::string, BoundaryID > * _side_ids
std::map< std::string, BoundaryID > * _unside_ids
std::map< unsigned int, std::string > * _var_names
std::map< BoundaryID, std::string > * _unside_names
PetscBool _print_embedding
std::map< ContactID, ContactName > * _uncontact_names
std::set< std::pair< BoundaryID, unsigned int > > * _unside_by_var_set
std::map< std::string, SplitInfo > * _splits
std::map< std::string, subdomain_id_type > * _block_ids
std::map< unsigned int, std::string > * _block_names
std::map< ContactName, PetscBool > * _uncontact_displaced
std::map< std::string, unsigned int > * _var_ids
std::map< ContactName, PetscBool > * _contact_displaced
std::map< ContactID, ContactName > * _contact_names

Referenced by DMMooseRegisterAll().