https://mooseframework.inl.gov
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>
29 template <std::size_t N>
30 struct NWrapper;
31 }
32 
33 using libMesh::Real;
37 
42 
43 template <std::size_t N>
45 
46 typedef DualNumber<Real, DNDerivativeType, /*allow_skiping_derivatives=*/true> ADReal;
SemiDynamicSparseNumberArray< Real, libMesh::dof_id_type, NWrapper< MOOSE_AD_MAX_DOFS_PER_ELEM > > DNDerivativeType
Definition: ADRealForward.h:41
We need to instantiate the following CompareTypes to tell the compiler that ADReal is a subtype of Ch...
DualNumber< Real, DNDerivativeType, true > ADReal
Definition: ADRealForward.h:46
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
uint8_t dof_id_type