From a28c7751ecd166580f8ad83e7c1035232f80043f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 23 Jun 2016 12:24:28 -0500 Subject: [PATCH] Instantiate the SymmetricTensor class and all of its members. In particular, also instantiate the static member variables. This is in analogy to #2667. --- source/base/CMakeLists.txt | 1 + source/base/symmetric_tensor.cc | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) 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 -- 2.39.5