From: Jean-Paul Pelteret Date: Mon, 11 Feb 2019 17:44:32 +0000 (+0100) Subject: Mark a function as constant. X-Git-Tag: v9.1.0-rc1~351^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33fe4a9974851ce841b1f3ce9300646498ec08c3;p=dealii.git Mark a function as constant. --- diff --git a/include/deal.II/differentiation/ad/ad_helpers.h b/include/deal.II/differentiation/ad/ad_helpers.h index ba21b90be5..61bb85daeb 100644 --- a/include/deal.II/differentiation/ad/ad_helpers.h +++ b/include/deal.II/differentiation/ad/ad_helpers.h @@ -950,7 +950,7 @@ namespace Differentiation * @note For taped AD numbers, this operation is only valid in recording mode. */ const std::vector & - get_sensitive_dof_values(); + get_sensitive_dof_values() const; //@} diff --git a/source/differentiation/ad/ad_helpers.cc b/source/differentiation/ad/ad_helpers.cc index e259ab6019..98f90b0aed 100644 --- a/source/differentiation/ad/ad_helpers.cc +++ b/source/differentiation/ad/ad_helpers.cc @@ -738,7 +738,7 @@ namespace Differentiation const std::vector< typename ADHelperCellLevelBase::ad_type> & ADHelperCellLevelBase::get_sensitive_dof_values() + ScalarType>::get_sensitive_dof_values() const { if (ADNumberTraits::is_taped == true) {