]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace auto return type
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 7 Feb 2023 15:11:41 +0000 (15:11 +0000)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 11 Feb 2023 04:43:04 +0000 (23:43 -0500)
include/deal.II/differentiation/ad/ad_helpers.h

index e63e401531481ec065b6780616d64833208d798f..67ad76ec8ef69d253d117c6a3526f864f7c18ad9 100644 (file)
@@ -2837,7 +2837,8 @@ namespace Differentiation
        * @note For taped AD numbers, this operation is only valid in recording mode.
        */
       template <typename ExtractorType>
-      auto
+      typename internal::Extractor<dim, ExtractorType>::tensor_type<
+        typename HelperBase<ADNumberTypeCode, ScalarType>::ad_type>
       get_sensitive_variables(const ExtractorType &extractor) const;
 
       /** @} */
@@ -3867,7 +3868,8 @@ namespace Differentiation
               enum AD::NumberTypes ADNumberTypeCode,
               typename ScalarType>
     template <typename ExtractorType>
-    auto
+    typename internal::Extractor<dim, ExtractorType>::tensor_type<
+      typename HelperBase<ADNumberTypeCode, ScalarType>::ad_type>
     PointLevelFunctionsBase<dim, ADNumberTypeCode, ScalarType>::
       get_sensitive_variables(const ExtractorType &extractor) const
     {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.