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

Go to the source code of this file.

Namespaces

namespace  EXTERN_C_END
 

Functions

EXTERN_C_BEGIN PetscErrorCode DMCreate_Moose (DM)
 
template<typename T >
void EXTERN_C_END::appendFVSetupObjects (TheWarehouse &warehouse, const std::string &system_name, const unsigned int system_number, const THREAD_ID tid, std::vector< SetupInterface * > &results)
 

Function Documentation

◆ DMCreate_Moose()

EXTERN_C_BEGIN PetscErrorCode DMCreate_Moose ( DM  dm)
extern

Definition at line 2078 of file PetscDMMoose.C.

2079{
2080 DM_Moose * dmm;
2081
2083 PetscValidHeaderSpecific(dm, DM_CLASSID, 1);
2084#if PETSC_RELEASE_LESS_THAN(3, 18, 0)
2085 LibmeshPetscCallQ(PetscNewLog(dm, &dmm));
2086#else // PetscNewLog was deprecated
2087 LibmeshPetscCallQ(PetscNew(&dmm));
2088#endif
2089 dm->data = dmm;
2090
2091 dmm->_name = new (std::string);
2092 dmm->_var_ids = new (std::map<std::string, unsigned int>);
2093 dmm->_block_ids = new (std::map<std::string, subdomain_id_type>);
2094 dmm->_var_names = new (std::map<unsigned int, std::string>);
2095 dmm->_block_names = new (std::map<unsigned int, std::string>);
2096 dmm->_side_ids = new (std::map<std::string, BoundaryID>);
2097 dmm->_side_names = new (std::map<BoundaryID, std::string>);
2098 dmm->_unside_ids = new (std::map<std::string, BoundaryID>);
2099 dmm->_unside_names = new (std::map<BoundaryID, std::string>);
2100 dmm->_unside_by_var_set = new (std::set<std::pair<BoundaryID, unsigned int>>);
2101 dmm->_contact_names = new (std::map<DM_Moose::ContactID, DM_Moose::ContactName>);
2102 dmm->_uncontact_names = new (std::map<DM_Moose::ContactID, DM_Moose::ContactName>);
2103 dmm->_contact_displaced = new (std::map<DM_Moose::ContactName, PetscBool>);
2104 dmm->_uncontact_displaced = new (std::map<DM_Moose::ContactName, PetscBool>);
2105
2106 dmm->_splits = new (std::map<std::string, DM_Moose::SplitInfo>);
2107
2108 dmm->_print_embedding = PETSC_FALSE;
2109
2110 dm->ops->createglobalvector = DMCreateGlobalVector_Moose;
2111 dm->ops->createlocalvector = 0; // DMCreateLocalVector_Moose;
2112 dm->ops->getcoloring = 0; // DMGetColoring_Moose;
2113 dm->ops->creatematrix = DMCreateMatrix_Moose;
2114 dm->ops->createinterpolation = 0; // DMCreateInterpolation_Moose;
2115
2116 dm->ops->refine = 0; // DMRefine_Moose;
2117 dm->ops->coarsen = 0; // DMCoarsen_Moose;
2118#if PETSC_RELEASE_LESS_THAN(3, 12, 0)
2119 dm->ops->getinjection = 0; // DMGetInjection_Moose;
2120 dm->ops->getaggregates = 0; // DMGetAggregates_Moose;
2121#else
2122 dm->ops->createinjection = 0;
2123#endif
2124
2125 dm->ops->createfielddecomposition = DMCreateFieldDecomposition_Moose;
2126 dm->ops->createdomaindecomposition = DMCreateDomainDecomposition_Moose;
2127
2128 dm->ops->destroy = DMDestroy_Moose;
2129 dm->ops->view = DMView_Moose;
2130 dm->ops->setfromoptions = DMSetFromOptions_Moose;
2131 dm->ops->setup = DMSetUp_Moose;
2132 PetscFunctionReturn(PETSC_SUCCESS);
2133}
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)
LibmeshPetscCallQ(DMMooseValidityCheck(dm))
PetscFunctionReturn(PETSC_SUCCESS)
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
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().