From: Wolfgang Bangerth Date: Thu, 23 Jun 2016 17:24:28 +0000 (-0500) Subject: Instantiate the SymmetricTensor class and all of its members. X-Git-Tag: v8.5.0-rc1~961^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2700%2Fhead;p=dealii.git Instantiate the SymmetricTensor class and all of its members. In particular, also instantiate the static member variables. This is in analogy to #2667. --- diff --git a/source/base/CMakeLists.txt b/source/base/CMakeLists.txt index 2f13d89d0c..66ece18044 100644 --- a/source/base/CMakeLists.txt +++ b/source/base/CMakeLists.txt @@ -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 diff --git a/source/base/symmetric_tensor.cc b/source/base/symmetric_tensor.cc index 15542b419d..c12cdb536a 100644 --- a/source/base/symmetric_tensor.cc +++ b/source/base/symmetric_tensor.cc @@ -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 +const unsigned int SymmetricTensor::dimension; + +template +const unsigned int SymmetricTensor::n_independent_components; + + +#include "symmetric_tensor.inst" + + DEAL_II_NAMESPACE_CLOSE