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 "KokkosGeneralUserObject.h" 11 : 12 : namespace Moose::Kokkos 13 : { 14 : 15 : InputParameters 16 2200 : GeneralUserObject::validParams() 17 : { 18 2200 : InputParameters params = UserObject::validParams(); 19 2200 : params += ::MaterialPropertyInterface::validParams(); 20 2200 : params += ::TransientInterface::validParams(); 21 2200 : return params; 22 0 : } 23 : 24 51 : GeneralUserObject::GeneralUserObject(const InputParameters & parameters) 25 : : UserObject(parameters), 26 27 : MeshHolder(*_fe_problem.mesh().getKokkosMesh()), 27 27 : AssemblyHolder(_fe_problem.kokkosAssembly()), 28 27 : SystemHolder(_fe_problem.getKokkosSystems()), 29 : ::MaterialPropertyInterface(this, Moose::EMPTY_BLOCK_IDS, Moose::EMPTY_BOUNDARY_IDS), 30 54 : ::TransientInterface(this) 31 : { 32 51 : } 33 : 34 0 : GeneralUserObject::GeneralUserObject(const GeneralUserObject & object) 35 : : UserObject(object), 36 : MeshHolder(object), 37 : AssemblyHolder(object), 38 : SystemHolder(object), 39 : ::MaterialPropertyInterface(object, {}), 40 0 : ::TransientInterface(object, {}) 41 : { 42 0 : } 43 : 44 : } // namespace Moose::Kokkos