]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix external declaration of Tensor::n_independent_components
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 9 Jan 2020 22:44:46 +0000 (17:44 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 10 Jan 2020 18:58:18 +0000 (13:58 -0500)
include/deal.II/base/tensor.h
source/base/tensor.cc

index 12060b444e4df94a7c8992c6ef68499e8a8d6ae6..2351334fb99f9f096f69e2b8be87dd631855f6dc 100644 (file)
@@ -1065,6 +1065,9 @@ Tensor<0, dim, Number>::serialize(Archive &ar, const unsigned int)
 }
 
 
+template <int dim, typename Number>
+constexpr unsigned int Tensor<0, dim, Number>::n_independent_components;
+
 
 /*-------------------- Inline functions: Tensor<rank,dim> --------------------*/
 
@@ -1567,6 +1570,10 @@ Tensor<rank_, dim, Number>::serialize(Archive &ar, const unsigned int)
 }
 
 
+template <int rank, int dim, typename Number>
+constexpr unsigned int Tensor<rank, dim, Number>::n_independent_components;
+
+
 /* ----------------- Non-member functions operating on tensors. ------------ */
 
 /**
index eb5a8d723369b0b88c8884e560378de2e7740ee5..7ed01375a81df2df387fc2825cb1a4ec068f0262 100644 (file)
 
 DEAL_II_NAMESPACE_OPEN
 
-
-template <int dim, typename Number>
-constexpr unsigned int Tensor<0, dim, Number>::n_independent_components;
-
-template <int rank, int dim, typename Number>
-constexpr unsigned int Tensor<rank, dim, Number>::n_independent_components;
-
-
 #include "tensor.inst"
 
-
 DEAL_II_NAMESPACE_CLOSE

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.