]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix the type used to initialize a DerivativeForm from a tensor.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 2 Feb 2023 02:38:18 +0000 (19:38 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 2 Feb 2023 02:38:18 +0000 (19:38 -0700)
include/deal.II/base/derivative_form.h

index 99ffd053a548572e56ed57288833b3a7a87305f8..3cb74f5e9e203fbec55dcf9c588d0afe6fef9c60 100644 (file)
@@ -69,9 +69,12 @@ public:
   DerivativeForm(const Tensor<order + 1, dim, Number> &);
 
   /**
-   * 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<order, spacedim, Tensor<1, dim, Number>> &);
+  DerivativeForm(const Tensor<1, spacedim, Tensor<order, dim, Number>> &);
 
   /**
    * Read-Write access operator.
@@ -199,7 +202,7 @@ inline DerivativeForm<order, dim, spacedim, Number>::DerivativeForm(
 
 template <int order, int dim, int spacedim, typename Number>
 inline DerivativeForm<order, dim, spacedim, Number>::DerivativeForm(
-  const Tensor<order, spacedim, Tensor<1, dim, Number>> &T)
+  const Tensor<1, spacedim, Tensor<order, dim, Number>> &T)
 {
   for (unsigned int j = 0; j < spacedim; ++j)
     (*this)[j] = T[j];

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.