Line data Source code
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 "KokkosIntegratedBCBase.h" 11 : 12 : namespace Moose::Kokkos 13 : { 14 : 15 : InputParameters 16 22106 : IntegratedBCBase::validParams() 17 : { 18 22106 : auto params = BoundaryCondition::validParams(); 19 22106 : params += MaterialPropertyInterface::validParams(); 20 : 21 66802 : params.addParam<unsigned int>( 22 : "num_local_threads", 23 43244 : 4, 24 : "The number of threads for additional parallelization of local DOFs."); 25 : 26 : // Integrated BCs always rely on Boundary MaterialData 27 22106 : params.set<Moose::MaterialDataType>("_material_data_type") = Moose::BOUNDARY_MATERIAL_DATA; 28 : 29 22106 : return params; 30 0 : } 31 : 32 567 : IntegratedBCBase::IntegratedBCBase(const InputParameters & parameters, 33 801 : Moose::VarFieldType field_type) 34 : : BoundaryCondition(parameters, field_type, false), 35 : CoupleableMooseVariableDependencyIntermediateInterface(this, false), 36 : MaterialPropertyInterface(this, Moose::EMPTY_BLOCK_IDS, boundaryIDs()), 37 666 : _num_local_threads(getParam<unsigned int>("num_local_threads")) 38 : { 39 567 : } 40 : 41 28363 : IntegratedBCBase::IntegratedBCBase(const IntegratedBCBase & object) 42 : : BoundaryCondition(object), 43 : CoupleableMooseVariableDependencyIntermediateInterface(object, {}), 44 : MaterialPropertyInterface(object, {}), 45 18597 : _num_local_threads(object._num_local_threads) 46 : { 47 28363 : } 48 : 49 : } // namespace Moose::Kokkos