https://mooseframework.inl.gov
KokkosGeneralUserObject.h
Go to the documentation of this file.
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 
15 #include "TransientInterface.h"
16 
17 namespace Moose::Kokkos
18 {
19 
21  public MeshHolder,
22  public AssemblyHolder,
23  public SystemHolder,
26 {
27 public:
29 
31 
35  GeneralUserObject(const GeneralUserObject & object);
36 
37 private:
38  // General user objects are not dispatched
39  virtual void computeUserObject() override final {}
40  virtual ThreadID numUserObjectThreads() const override final { return 0; }
41 };
42 
43 } // namespace Moose::Kokkos
virtual ThreadID numUserObjectThreads() const override final
Get the number of threads.
GeneralUserObject(const InputParameters &parameters)
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
The Kokkos interface that holds the host reference of the Kokkos systems and copies it to device duri...
Definition: KokkosSystem.h:753
The Kokkos interface that holds the host reference of the Kokkos mesh and copies it to device during ...
Definition: KokkosMesh.h:430
Interface for objects that needs transient capabilities.
MOOSE_KOKKOS_INDEX_TYPE ThreadID
Definition: KokkosThread.h:22
The Kokkos interface that holds the host reference of the Kokkos assembly and copies it to device dur...
static InputParameters validParams()
An interface for accessing Materials.
virtual void computeUserObject() override final
Dispatch parallel operation.