https://mooseframework.inl.gov
include
utils
ADRealForward.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 "libmesh/libmesh_common.h"
13
#include "metaphysicl/metaphysicl_version.h"
14
15
#if METAPHYSICL_MAJOR_VERSION < 1
16
namespace
MetaPhysicL
17
{
18
template
<
typename
,
typename
>
19
class
DualNumber
;
20
}
21
#else
22
#include "metaphysicl/dualnumber_forward.h"
23
#endif
24
25
namespace
MetaPhysicL
26
{
27
template
<
typename
,
typename
,
typename
>
28
class
SemiDynamicSparseNumberArray
;
29
template
<std::
size_t
N>
30
struct
NWrapper
;
31
}
32
33
using
libMesh::Real
;
34
using
MetaPhysicL::DualNumber
;
35
using
MetaPhysicL::NWrapper
;
36
using
MetaPhysicL::SemiDynamicSparseNumberArray
;
37
38
typedef
SemiDynamicSparseNumberArray
<
Real
,
39
libMesh::dof_id_type
,
40
NWrapper<MOOSE_AD_MAX_DOFS_PER_ELEM>
>
41
DNDerivativeType
;
42
43
template
<std::
size_t
N>
44
using
DNDerivativeSize
=
SemiDynamicSparseNumberArray<Real, libMesh::dof_id_type, NWrapper<N>
>;
45
46
typedef
DualNumber
<
Real
,
DNDerivativeType
,
/*allow_skiping_derivatives=*/
true
>
ADReal
;
MetaPhysicL::NWrapper
Definition:
ADRealForward.h:30
DNDerivativeType
SemiDynamicSparseNumberArray< Real, libMesh::dof_id_type, NWrapper< MOOSE_AD_MAX_DOFS_PER_ELEM > > DNDerivativeType
Definition:
ADRealForward.h:41
MetaPhysicL
We need to instantiate the following CompareTypes to tell the compiler that ADReal is a subtype of Ch...
ADReal
DualNumber< Real, DNDerivativeType, true > ADReal
Definition:
ADRealForward.h:46
libMesh::Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MetaPhysicL::SemiDynamicSparseNumberArray
Definition:
ADRealForward.h:28
MetaPhysicL::DualNumber
Definition:
ADRealForward.h:19
libMesh::dof_id_type
uint8_t dof_id_type
Generated on Sat Aug 2 2025 20:05:22 for https://mooseframework.inl.gov by
1.8.14