]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark a function as constant.
authorJean-Paul Pelteret <jppelteret@gmail.com>
Mon, 11 Feb 2019 17:44:32 +0000 (18:44 +0100)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Mon, 11 Feb 2019 18:07:22 +0000 (19:07 +0100)
include/deal.II/differentiation/ad/ad_helpers.h
source/differentiation/ad/ad_helpers.cc

index ba21b90be59e583d710d512231284e70718e5027..61bb85daeb07aef44ce2a67000e8c3cf80e60a57 100644 (file)
@@ -950,7 +950,7 @@ namespace Differentiation
        * @note For taped AD numbers, this operation is only valid in recording mode.
        */
       const std::vector<ad_type> &
-      get_sensitive_dof_values();
+      get_sensitive_dof_values() const;
 
       //@}
 
index e259ab6019c647723ebc1b5d400dc4ec907c9538..98f90b0aedf696219cabd4df0ec585b542275764 100644 (file)
@@ -738,7 +738,7 @@ namespace Differentiation
     const std::vector<
       typename ADHelperCellLevelBase<ADNumberTypeCode, ScalarType>::ad_type> &
     ADHelperCellLevelBase<ADNumberTypeCode,
-                          ScalarType>::get_sensitive_dof_values()
+                          ScalarType>::get_sensitive_dof_values() const
     {
       if (ADNumberTraits<ad_type>::is_taped == true)
         {

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.