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 : #pragma once 11 : 12 : #include "KokkosUserObject.h" 13 : 14 : #include "CoupleableMooseVariableDependencyIntermediateInterface.h" 15 : #include "MaterialPropertyInterface.h" 16 : #include "TransientInterface.h" 17 : 18 : namespace Moose::Kokkos 19 : { 20 : 21 : class GeneralUserObject : public UserObject, 22 : public MeshHolder, 23 : public AssemblyHolder, 24 : public FESystemHolder, 25 : public ::CoupleableMooseVariableDependencyIntermediateInterface, 26 : public ::MaterialPropertyInterface, 27 : public ::TransientInterface 28 : { 29 : public: 30 : static InputParameters validParams(); 31 : 32 : GeneralUserObject(const InputParameters & parameters); 33 : 34 : /** 35 : * Copy constructor for parallel dispatch 36 : */ 37 : GeneralUserObject(const GeneralUserObject & object); 38 : 39 : private: 40 : // General user objects are not dispatched 41 0 : virtual void computeUserObject() override final {} 42 0 : virtual ThreadID numUserObjectThreads() const override final { return 0; } 43 : }; 44 : 45 : } // namespace Moose::Kokkos