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 994152 : FunctorRelationshipManager::validParams() 15 : { 16 994152 : InputParameters params = RelationshipManager::validParams(); 17 994152 : return params; 18 : } 19 : 20 433274 : FunctorRelationshipManager::FunctorRelationshipManager(const InputParameters & parameters) 21 433274 : : RelationshipManager(parameters), _functor(nullptr) 22 : { 23 433270 : } 24 : 25 99078 : FunctorRelationshipManager::FunctorRelationshipManager(const FunctorRelationshipManager & other) 26 99078 : : RelationshipManager(other), _functor(other._functor ? other._functor->clone() : nullptr) 27 : { 28 99078 : } 29 : 30 : void 31 8761773 : 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 8761773 : if (!_functor) 37 0 : mooseError("Functor was not initialized!"); 38 : 39 8761773 : (*_functor)(range_begin, range_end, p, coupled_elements); 40 8761773 : } 41 : 42 : void 43 108150 : FunctorRelationshipManager::mesh_reinit() 44 : { 45 108150 : if (!_functor) 46 0 : mooseError("Functor was not initialized!"); 47 : 48 108150 : _functor->mesh_reinit(); 49 108150 : } 50 : 51 : void 52 814 : FunctorRelationshipManager::dofmap_reinit() 53 : { 54 814 : if (!_functor) 55 0 : mooseError("Functor was not initialized!"); 56 : 57 814 : _functor->dofmap_reinit(); 58 814 : } 59 : 60 : void 61 65063 : FunctorRelationshipManager::redistribute() 62 : { 63 65063 : if (!_functor) 64 0 : mooseError("Functor was not initialized!"); 65 : 66 65063 : _functor->redistribute(); 67 65063 : } 68 : 69 : void 70 14006 : FunctorRelationshipManager::delete_remote_elements() 71 : { 72 14006 : if (!_functor) 73 0 : mooseError("Functor was not initialized!"); 74 : 75 14006 : _functor->delete_remote_elements(); 76 14006 : }