From 33fe4a9974851ce841b1f3ce9300646498ec08c3 Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Mon, 11 Feb 2019 18:44:32 +0100 Subject: [PATCH] Mark a function as constant. --- include/deal.II/differentiation/ad/ad_helpers.h | 2 +- source/differentiation/ad/ad_helpers.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5