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 : #pragma once 11 : 12 : #include "KokkosDirichletBCBase.h" 13 : 14 : template <bool is_ad> 15 : class KokkosDirichletBCTempl : public Moose::Kokkos::DirichletBCBaseTempl<is_ad> 16 : { 17 : public: 18 : static InputParameters validParams(); 19 : 20 : KokkosDirichletBCTempl(const InputParameters & parameters); 21 : 22 486711 : KOKKOS_FUNCTION Real computeValue(const unsigned int /* qp */, AssemblyDatum & /* datum */) const 23 : { 24 486711 : return _value; 25 : } 26 : 27 : protected: 28 : const Moose::Kokkos::Scalar<const Real> _value; 29 : }; 30 : 31 : typedef KokkosDirichletBCTempl<false> KokkosDirichletBC; 32 : typedef KokkosDirichletBCTempl<true> KokkosADDirichletBC;