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 "KokkosNodalReducer.h" 11 : 12 : namespace Moose::Kokkos 13 : { 14 : 15 : InputParameters 16 13094 : NodalReducer::validParams() 17 : { 18 13094 : InputParameters params = ::BlockRestrictable::validParams(); 19 13094 : params += ::BoundaryRestrictable::validParams(); 20 : 21 26438 : params.addParam<bool>("unique_node_execute", 22 25688 : false, 23 : "When false (default), block restricted objects will have the " 24 : "execute method called multiple times on a single node if the " 25 : "node lies on a interface between two subdomains."); 26 : 27 13094 : return params; 28 0 : } 29 : 30 375 : NodalReducer::NodalReducer(const MooseObject * object) 31 : : ReducerBase(object), 32 : ::BlockRestrictable(object), 33 : ::BoundaryRestrictable(object, blockIDs(), true), 34 270 : _bnd(boundaryRestricted()), 35 270 : _unique_node_execute(object->getParam<bool>("unique_node_execute")) 36 : { 37 255 : } 38 : 39 2600 : NodalReducer::NodalReducer(const NodalReducer & object) 40 : : ReducerBase(object), 41 : ::BlockRestrictable(object, {}), 42 : ::BoundaryRestrictable(object, {}), 43 1392 : _bnd(object._bnd), 44 1392 : _unique_node_execute(object._unique_node_execute) 45 : { 46 2600 : } 47 : 48 : } // namespace Moose::Kokkos