https://mooseframework.inl.gov
Namespaces | Functions
ADUtils.h File Reference

Go to the source code of this file.

Namespaces

 libMesh
 The following methods are specializations for using the libMesh::Parallel::packed_range_* routines for std::strings.
 
 Moose
 MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to address this in their environment if C++17 compatibility isn't found.
 

Functions

bool Moose::globalADIndexing ()
 Whether we are using global AD indexing. More...
 
std::size_t Moose::adOffset (unsigned int var_num, std::size_t max_dofs_per_elem, ElementType element_type=ElementType::Element, unsigned int num_vars_in_system=0)
 Helper function for computing automatic differentiation offset. More...
 
std::size_t Moose::adOffset (unsigned int var_num, std::size_t max_dofs_per_elem, DGJacobianType dg_jacobian_type, unsigned int num_vars_in_system=0)
 
std::unordered_map< dof_id_type, RealMoose::globalDofIndexToDerivative (const ADReal &ad_real, const SystemBase &sys, ElementType elem_type=ElementType::Element, THREAD_ID tid=0)
 Generate a map from global dof index to derivative value. More...
 
template<typename T >
auto Moose::globalDofIndexToDerivative (const T &ad_real_container, const SystemBase &sys, ElementType elem_type=ElementType::Element, THREAD_ID tid=0) -> std::vector< std::unordered_map< dof_id_type, typename std::enable_if< std::is_same< ADReal, typename T::value_type >::value, Real >::type >>
 Generate a map from global dof index to derivative value for a (probably quadrature-point-based) container like a material property or a variable value. More...
 
bool Moose::doDerivatives (const SubProblem &subproblem, const SystemBase &sys)