https://mooseframework.inl.gov
KokkosADReal.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 "ADRealForward.h"
13 
14 namespace Moose::Kokkos
15 {
16 
17 using MetaPhysicL::KokkosSemiDynamicSparseNumberArray;
18 
19 typedef KokkosSemiDynamicSparseNumberArray<Real,
21  NWrapper<MOOSE_AD_MAX_DOFS_PER_ELEM>>
23 
24 template <std::size_t N>
25 using DNDerivativeSize =
26  KokkosSemiDynamicSparseNumberArray<Real, libMesh::dof_id_type, NWrapper<N>>;
27 
28 typedef DualNumber<Real, DNDerivativeType, false> ADReal;
29 
30 } // namespace Moose::Kokkos
DualNumber< Real, DNDerivativeType, false > ADReal
Definition: KokkosADReal.h:28
KokkosSemiDynamicSparseNumberArray< Real, libMesh::dof_id_type, NWrapper< MOOSE_AD_MAX_DOFS_PER_ELEM > > DNDerivativeType
Definition: KokkosADReal.h:22
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
KokkosSemiDynamicSparseNumberArray< Real, libMesh::dof_id_type, NWrapper< N > > DNDerivativeSize
Definition: KokkosADReal.h:26
uint8_t dof_id_type