From: Jean-Paul Pelteret Date: Thu, 12 Apr 2018 13:33:49 +0000 (+0200) Subject: Instantiate Tensor class for auto-differentiable numbers X-Git-Tag: v9.0.0-rc1~180^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6231%2Fhead;p=dealii.git Instantiate Tensor class for auto-differentiable numbers --- diff --git a/doc/news/changes/minor/20180412Jean-PaulPelteret-2 b/doc/news/changes/minor/20180412Jean-PaulPelteret-2 new file mode 100644 index 0000000000..d809b37c8a --- /dev/null +++ b/doc/news/changes/minor/20180412Jean-PaulPelteret-2 @@ -0,0 +1,4 @@ +Fixed: The Tensor class was previously not instantiated for +auto-differentiable numbers. +
+(Jean-Paul Pelteret, 2018/04/12) diff --git a/source/base/tensor.cc b/source/base/tensor.cc index acf9af0cdd..96675577a6 100644 --- a/source/base/tensor.cc +++ b/source/base/tensor.cc @@ -13,6 +13,12 @@ // // --------------------------------------------------------------------- +#include + +// Required for instantiation of template functions +#include +#include + #include DEAL_II_NAMESPACE_OPEN diff --git a/source/base/tensor.inst.in b/source/base/tensor.inst.in index 18840ec4d7..afc817e162 100644 --- a/source/base/tensor.inst.in +++ b/source/base/tensor.inst.in @@ -40,3 +40,29 @@ for (deal_II_dimension : DIMENSIONS; number : COMPLEX_SCALARS) template class Tensor<0,deal_II_dimension,number>; } + + +for (rank : RANKS; deal_II_dimension : DIMENSIONS; number : DIFFERENTIABLE_ADOLC_REAL_SCALARS) +{ + template + class Tensor; +} + + +for (deal_II_dimension : DIMENSIONS; number : DIFFERENTIABLE_ADOLC_REAL_SCALARS) +{ + template + class Tensor<0,deal_II_dimension,number>; +} + +for (rank : RANKS; deal_II_dimension : DIMENSIONS; number : DIFFERENTIABLE_TRILINOS_SACADO_REAL_SCALARS) +{ + template + class Tensor; +} + +for (deal_II_dimension : DIMENSIONS; number : DIFFERENTIABLE_TRILINOS_SACADO_REAL_SCALARS) +{ + template + class Tensor<0,deal_II_dimension,number>; +}