https://mooseframework.inl.gov
Loading...
Searching...
No Matches
KokkosDirichletBC.h
Go to the documentation of this file.
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#pragma once
11
13
14template <bool is_ad>
16{
17public:
19
21
22 KOKKOS_FUNCTION Real computeValue(const unsigned int /* qp */, AssemblyDatum & /* datum */) const
23 {
24 return _value;
25 }
26
27protected:
29};
30
KokkosDirichletBCTempl< true > KokkosADDirichletBC
KokkosDirichletBCTempl< false > KokkosDirichletBC
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const Moose::Kokkos::Scalar< const Real > _value
KokkosDirichletBCTempl(const InputParameters &parameters)
static InputParameters validParams()
KOKKOS_FUNCTION Real computeValue(const unsigned int, AssemblyDatum &) const
The Kokkos object that holds thread-private data in the parallel operations of Kokkos kernels.
The base Kokkos boundary condition of a Dirichlet type.
The Kokkos wrapper class that can hold the reference of an arithmetic scalar variable.