From: Wolfgang Bangerth Date: Thu, 2 Feb 2023 02:38:18 +0000 (-0700) Subject: Fix the type used to initialize a DerivativeForm from a tensor. X-Git-Tag: v9.5.0-rc1~567^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f370077ce2f2542e7b74249e6a89771b724771a;p=dealii.git Fix the type used to initialize a DerivativeForm from a tensor. --- 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];