www.mooseframework.org
AddRelationshipManager.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "AddRelationshipManager.h"
11 #include "FEProblem.h"
12 #include "DisplacedProblem.h"
13 
14 registerMooseAction("MooseApp", AddRelationshipManager, "attach_geometric_rm");
15 registerMooseAction("MooseApp", AddRelationshipManager, "attach_algebraic_rm");
16 
17 template <>
20 {
21  return validParams<Action>();
22 }
23 
25 
26 void
28 {
32 
33  const auto & all_action_ptrs = _awh.allActionBlocks();
34  for (const auto & action_ptr : all_action_ptrs)
35  action_ptr->addRelationshipManagers(rm_type);
36 
38 }
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
RelationshipManagerType
Main types of Relationship Managers.
Definition: MooseTypes.h:716
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
Definition: Action.h:207
registerMooseAction("MooseApp", AddRelationshipManager, "attach_geometric_rm")
This Action retrieves all of the Actions from the MooseAction Warehouse and triggers the addRelations...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for actions.
Definition: Action.h:35
const std::string & _current_task
The current action (even though we have seperate instances for each action)
Definition: Action.h:210
AddRelationshipManager(InputParameters params)
const std::vector< std::shared_ptr< Action > > & allActionBlocks() const
Returns a reference to all of the actions.
InputParameters validParams< AddRelationshipManager >()
void attachRelationshipManagers(Moose::RelationshipManagerType rm_type)
Attach the relationship managers of the given type Note: Geometric relationship managers that are sup...
Definition: MooseApp.C:1731
MooseApp & _app
The MOOSE application this is associated with.
Definition: Action.h:183
InputParameters validParams< Action >()
Definition: Action.C:22