From 1f370077ce2f2542e7b74249e6a89771b724771a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 1 Feb 2023 19:38:18 -0700 Subject: [PATCH] Fix the type used to initialize a DerivativeForm from a tensor. --- include/deal.II/base/derivative_form.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/deal.II/base/derivative_form.h b/include/deal.II/base/derivative_form.h index 99ffd053a5..3cb74f5e9e 100644 --- a/include/deal.II/base/derivative_form.h +++ b/include/deal.II/base/derivative_form.h @@ -69,9 +69,12 @@ public: DerivativeForm(const Tensor &); /** - * Constructor from a tensor. + * Constructor. This constructor initializes the data stored by this + * object from a `spacedim x dim^order` array that is represented + * by a Tensor with `spacedim` components each of which is a + * Tensor of rank `order` and size `dim`. */ - DerivativeForm(const Tensor> &); + DerivativeForm(const Tensor<1, spacedim, Tensor> &); /** * Read-Write access operator. @@ -199,7 +202,7 @@ inline DerivativeForm::DerivativeForm( template inline DerivativeForm::DerivativeForm( - const Tensor> &T) + const Tensor<1, spacedim, Tensor> &T) { for (unsigned int j = 0; j < spacedim; ++j) (*this)[j] = T[j]; -- 2.39.5