Relationship manager to add ghosting between elements. More...
#include <AugmentSparsityBetweenElements.h>
Public Types | |
typedef DataFileName | DataFileParameterType |
typedef std::map< const Elem *, const CouplingMatrix *, CompareDofObjectsByPIDAndThenID > | map_type |
Public Member Functions | |
AugmentSparsityBetweenElements (const InputParameters &) | |
AugmentSparsityBetweenElements (const AugmentSparsityBetweenElements &others) | |
virtual void | operator() (const MeshBase::const_element_iterator &range_begin, const MeshBase::const_element_iterator &range_end, processor_id_type p, map_type &coupled_elements) override |
virtual std::unique_ptr< GhostingFunctor > | clone () const override |
virtual void | mesh_reinit () override |
virtual void | redistribute () override |
std::string | getInfo () const override |
virtual bool | operator>= (const RelationshipManager &rhs) const override |
void | init (MooseMesh &moose_mesh, const MeshBase &mesh, const libMesh::DofMap *dof_map=nullptr) |
bool | inited () |
virtual const std::vector< std::string > & | forWhom () const |
void | addForWhom (const std::string &for_whom) |
Moose::RelationshipManagerType | getType () const |
bool | isType (const Moose::RelationshipManagerType &type) const |
virtual bool | operator== (const RelationshipManager &) const |
virtual bool | baseGreaterEqual (const RelationshipManager &rhs) const |
bool | attachGeometricEarly () |
bool | useDisplacedMesh () const |
const libMesh::DofMap * | dofMap () |
virtual bool | enabled () const |
std::shared_ptr< MooseObject > | getSharedPtr () |
std::shared_ptr< const MooseObject > | getSharedPtr () const |
MooseApp & | getMooseApp () const |
const std::string & | type () const |
virtual const std::string & | name () const |
std::string | typeAndName () const |
std::string | errorPrefix (const std::string &error_type) const |
void | callMooseError (std::string msg, const bool with_prefix) const |
MooseObjectParameterName | uniqueParameterName (const std::string ¶meter_name) const |
const InputParameters & | parameters () const |
MooseObjectName | uniqueName () const |
const T & | getParam (const std::string &name) const |
std::vector< std::pair< T1, T2 > > | getParam (const std::string ¶m1, const std::string ¶m2) const |
const T * | queryParam (const std::string &name) const |
const T & | getRenamedParam (const std::string &old_name, const std::string &new_name) const |
T | getCheckedPointerParam (const std::string &name, const std::string &error_string="") const |
bool | isParamValid (const std::string &name) const |
bool | isParamSetByUser (const std::string &nm) const |
void | paramError (const std::string ¶m, Args... args) const |
void | paramWarning (const std::string ¶m, Args... args) const |
void | paramInfo (const std::string ¶m, Args... args) const |
void | connectControllableParams (const std::string ¶meter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const |
void | mooseError (Args &&... args) const |
void | mooseErrorNonPrefixed (Args &&... args) const |
void | mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const |
void | mooseWarning (Args &&... args) const |
void | mooseWarningNonPrefixed (Args &&... args) const |
void | mooseDeprecated (Args &&... args) const |
void | mooseInfo (Args &&... args) const |
std::string | getDataFileName (const std::string ¶m) const |
std::string | getDataFileNameByName (const std::string &relative_path) const |
std::string | getDataFilePath (const std::string &relative_path) const |
const Parallel::Communicator & | comm () const |
processor_id_type | n_processors () const |
processor_id_type | processor_id () const |
virtual void | set_mesh (const MeshBase *mesh) |
virtual void | set_periodic_boundaries (const PeriodicBoundaries *) |
const MeshBase * | get_mesh () const |
virtual void | dofmap_reinit () |
virtual void | delete_remote_elements () |
Static Public Member Functions | |
static InputParameters | validParams () |
static bool | isGeometric (Moose::RelationshipManagerType input_rm) |
static bool | isAlgebraic (Moose::RelationshipManagerType input_rm) |
static bool | isCoupling (Moose::RelationshipManagerType input_rm) |
static InputParameters | zeroLayerGhosting () |
static InputParameters | oneLayerGhosting (Moose::RelationshipManagerType rm_type) |
static std::string | get_info () |
static void | print_info (std::ostream &out_stream=libMesh::out) |
static unsigned int | n_objects () |
static void | enable_print_counter_info () |
static void | disable_print_counter_info () |
Public Attributes | |
const ConsoleStream | _console |
Static Public Attributes | |
static Moose::RelationshipManagerType | geo_and_alg |
static Moose::RelationshipManagerType | geo_alg_and_coupl |
Protected Types | |
typedef std::map< std::string, std::pair< unsigned int, unsigned int > > | Counts |
Protected Member Functions | |
virtual void | internalInitWithMesh (const MeshBase &) override |
virtual void | internalInit () |
void | increment_constructor_count (const std::string &name) noexcept |
void | increment_destructor_count (const std::string &name) noexcept |
Protected Attributes | |
const std::map< dof_id_type, std::vector< dof_id_type > > & | _elem_map |
Map of element ghosting. Element IDs linked to list of element IDs that they are connected to. More... | |
bool | _inited |
MooseMesh * | _moose_mesh |
const libMesh::DofMap * | _dof_map |
const bool | _attach_geometric_early |
Moose::RelationshipManagerType | _rm_type |
std::vector< std::string > | _for_whom |
const bool | _use_displaced_mesh |
const bool & | _enabled |
MooseApp & | _app |
const std::string | _type |
const std::string | _name |
const InputParameters & | _pars |
Factory & | _factory |
ActionFactory & | _action_factory |
const Parallel::Communicator & | _communicator |
const MeshBase * | _mesh |
Static Protected Attributes | |
static Counts | _counts |
static Threads::atomic< unsigned int > | _n_objects |
static Threads::spin_mutex | _mutex |
static bool | _enable_print_counter |
Relationship manager to add ghosting between elements.
The list of element IDs and connected element IDs has to be constructed. This is to be used when THM components need to see each other in distributed memory parallelism
Definition at line 22 of file AugmentSparsityBetweenElements.h.
AugmentSparsityBetweenElements::AugmentSparsityBetweenElements | ( | const InputParameters & | params | ) |
Definition at line 26 of file AugmentSparsityBetweenElements.C.
AugmentSparsityBetweenElements::AugmentSparsityBetweenElements | ( | const AugmentSparsityBetweenElements & | others | ) |
Definition at line 32 of file AugmentSparsityBetweenElements.C.
|
overridevirtual |
Reimplemented from libMesh::GhostingFunctor.
Definition at line 39 of file AugmentSparsityBetweenElements.C.
|
overridevirtual |
Implements RelationshipManager.
Definition at line 61 of file AugmentSparsityBetweenElements.C.
|
overrideprotectedvirtual |
Reimplemented from RelationshipManager.
Definition at line 56 of file AugmentSparsityBetweenElements.C.
|
overridevirtual |
Reimplemented from libMesh::GhostingFunctor.
Definition at line 45 of file AugmentSparsityBetweenElements.C.
|
overridevirtual |
Implements libMesh::GhostingFunctor.
Definition at line 69 of file AugmentSparsityBetweenElements.C.
|
overridevirtual |
Reimplemented from RelationshipManager.
Definition at line 91 of file AugmentSparsityBetweenElements.C.
|
overridevirtual |
Reimplemented from libMesh::GhostingFunctor.
Definition at line 51 of file AugmentSparsityBetweenElements.C.
|
static |
Definition at line 18 of file AugmentSparsityBetweenElements.C.
|
protected |
Map of element ghosting. Element IDs linked to list of element IDs that they are connected to.
Definition at line 42 of file AugmentSparsityBetweenElements.h.
Referenced by operator()(), and operator>=().