Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 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 "FunctorRelationshipManager.h" 11 : #include "MooseApp.h" 12 : 13 : InputParameters 14 1066778 : FunctorRelationshipManager::validParams() 15 : { 16 1066778 : InputParameters params = RelationshipManager::validParams(); 17 1066778 : return params; 18 : } 19 : 20 465734 : FunctorRelationshipManager::FunctorRelationshipManager(const InputParameters & parameters) 21 465734 : : RelationshipManager(parameters), _functor(nullptr) 22 : { 23 465730 : } 24 : 25 106784 : FunctorRelationshipManager::FunctorRelationshipManager(const FunctorRelationshipManager & other) 26 106784 : : RelationshipManager(other), _functor(other._functor ? other._functor->clone() : nullptr) 27 : { 28 106784 : } 29 : 30 : void 31 9587510 : FunctorRelationshipManager::operator()(const MeshBase::const_element_iterator & range_begin, 32 : const MeshBase::const_element_iterator & range_end, 33 : processor_id_type p, 34 : map_type & coupled_elements) 35 : { 36 9587510 : if (!_functor) 37 0 : mooseError("Functor was not initialized!"); 38 : 39 9587510 : (*_functor)(range_begin, range_end, p, coupled_elements); 40 9587510 : } 41 : 42 : void 43 117516 : FunctorRelationshipManager::mesh_reinit() 44 : { 45 117516 : if (!_functor) 46 0 : mooseError("Functor was not initialized!"); 47 : 48 117516 : _functor->mesh_reinit(); 49 117516 : } 50 : 51 : void 52 878 : FunctorRelationshipManager::dofmap_reinit() 53 : { 54 878 : if (!_functor) 55 0 : mooseError("Functor was not initialized!"); 56 : 57 878 : _functor->dofmap_reinit(); 58 878 : } 59 : 60 : void 61 69584 : FunctorRelationshipManager::redistribute() 62 : { 63 69584 : if (!_functor) 64 0 : mooseError("Functor was not initialized!"); 65 : 66 69584 : _functor->redistribute(); 67 69584 : } 68 : 69 : void 70 14409 : FunctorRelationshipManager::delete_remote_elements() 71 : { 72 14409 : if (!_functor) 73 0 : mooseError("Functor was not initialized!"); 74 : 75 14409 : _functor->delete_remote_elements(); 76 14409 : }