From: Jean-Paul Pelteret Date: Mon, 11 Feb 2019 17:45:09 +0000 (+0100) Subject: ADHelpers: Remove an unnecessary function X-Git-Tag: v9.1.0-rc1~351^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfe7446fa892c036d63b9aa3c259895fe03bafe5;p=dealii.git ADHelpers: Remove an unnecessary function --- diff --git a/include/deal.II/differentiation/ad/ad_helpers.h b/include/deal.II/differentiation/ad/ad_helpers.h index 61bb85daeb..bf3ea90c62 100644 --- a/include/deal.II/differentiation/ad/ad_helpers.h +++ b/include/deal.II/differentiation/ad/ad_helpers.h @@ -954,36 +954,6 @@ namespace Differentiation //@} - /** - * @name Post-processing - */ - //@{ - - /* - * Return the complete set of degree of freedom values of - * auto-differentiable number type. These store the same scalar values as - * the independent variables $\mathbf{X}$ about which the solution is - * linearized. - * - * Operations performed with these numbers are not tracked by the AD, - * libraries so they are considered "non-sensitive" variables. - * The values of the components of the returned object are initialized to - * the values set with register_dof_values(). - * - * @return An array of auto-differentiable type numbers representing the - * local degree of freedom values. - * - * @note This function is not typically used within the context of automatic - * differentation computations, but can make performing substutitions in - * other post-processing computations more straight forward. - * - * @note For taped AD numbers, this operation is only valid outside recording mode. - */ - std::vector - get_non_sensitive_dof_values() const; - - //@} - /** * @name Operations specific to taped mode: Reusing tapes */ diff --git a/source/differentiation/ad/ad_helpers.cc b/source/differentiation/ad/ad_helpers.cc index 98f90b0aed..2c3a9a5a47 100644 --- a/source/differentiation/ad/ad_helpers.cc +++ b/source/differentiation/ad/ad_helpers.cc @@ -760,30 +760,6 @@ namespace Differentiation - template - std::vector< - typename ADHelperCellLevelBase::ad_type> - ADHelperCellLevelBase::get_non_sensitive_dof_values() const - { - if (ADNumberTraits::is_taped == true) - { - Assert(this->active_tape_index() != - Numbers::invalid_tape_index, - ExcMessage("Invalid tape index")); - } - - std::vector out(this->n_independent_variables(), - dealii::internal::NumberType::value( - 0.0)); - for (unsigned int i = 0; i < this->n_independent_variables(); ++i) - this->initialize_non_sensitive_independent_variable(i, out[i]); - - return out; - } - - - template void ADHelperCellLevelBase::set_dof_values(