From ef38926c23a23cdfb85ecaf4962ac41a8864fa60 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 5 Oct 2000 16:18:45 +0000 Subject: [PATCH] Avoid warning for double->int conversion. git-svn-id: https://svn.dealii.org/trunk@3377 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/tensor.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deal.II/base/source/tensor.cc b/deal.II/base/source/tensor.cc index bcab0b9673..2a84b3809c 100644 --- a/deal.II/base/source/tensor.cc +++ b/deal.II/base/source/tensor.cc @@ -29,18 +29,21 @@ Tensor<1,dim>::unroll( Vector& result) const } + template void Tensor::unroll( Vector& result) const { Assert(result.size()==pow(dim,rank_), - ExcWrongVectorSize(pow(dim,rank_), result.size())); + ExcWrongVectorSize(static_cast(pow(dim,rank_)), + result.size())); unsigned index = 0; unroll_recursion(result,index); } + template void Tensor::unroll_recursion( Vector& result, unsigned& index) const @@ -53,16 +56,13 @@ Tensor::unroll_recursion( Vector& result, unsigned& index) c } + template void Tensor<1,dim>::unroll_recursion( Vector& result, unsigned& index) const { for (unsigned i=0; i