]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Instantiate the SymmetricTensor class and all of its members. 2700/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Jun 2016 17:24:28 +0000 (12:24 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Jun 2016 17:24:28 +0000 (12:24 -0500)
In particular, also instantiate the static member variables. This is in analogy to #2667.

source/base/CMakeLists.txt
source/base/symmetric_tensor.cc

index 2f13d89d0ced5cd4e5ca94d9cdcad39fe9fc9d24..66ece18044b9a11e15be407da0551f7bb34ff522 100644 (file)
@@ -78,6 +78,7 @@ SET(_inst
   function_time.inst.in
   mpi.inst.in
   polynomials_rannacher_turek.inst.in
+  symmetric_tensor.inst.in
   tensor.inst.in
   tensor_function.inst.in
   time_stepping.inst.in
index 15542b419d3840b119dc4d329e8aec35d18bdfa7..c12cdb536a8f8b343c4c5512263e442d2ee6287d 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2005 - 2015 by the deal.II authors
+// Copyright (C) 2005 - 2016 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -126,4 +126,17 @@ invert<3,double> (const SymmetricTensor<4,3,double> &t)
   return tmp;
 }
 
+
+
+// provide definitions for static members
+template <int rank, int dim, typename Number>
+const unsigned int SymmetricTensor<rank,dim,Number>::dimension;
+
+template <int rank, int dim, typename Number>
+const unsigned int SymmetricTensor<rank,dim,Number>::n_independent_components;
+
+
+#include "symmetric_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.