From: Lukas Korous Date: Wed, 3 Dec 2014 23:34:38 +0000 (+0100) Subject: Patch by Lukas Korous: Make namespace DerivativeApproximation work with MS Visual... X-Git-Tag: v8.2.0-rc1~33^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2836e8d76ffdee3698e64a88bd8e10b380324348;p=dealii.git Patch by Lukas Korous: Make namespace DerivativeApproximation work with MS Visual Studio. --- diff --git a/include/deal.II/numerics/derivative_approximation.h b/include/deal.II/numerics/derivative_approximation.h index 7bfa45666c..1d48ba1e86 100644 --- a/include/deal.II/numerics/derivative_approximation.h +++ b/include/deal.II/numerics/derivative_approximation.h @@ -269,25 +269,25 @@ namespace DerivativeApproximation * In a parallel computation the @p solution vector needs to contain the * locally relevant unknowns. */ - template + template void - approximate_derivative_tensor (const Mapping &mapping, - const DH &dof, - const InputVector &solution, - const typename DH::active_cell_iterator &cell, - Tensor &derivative, - const unsigned int component = 0); + approximate_derivative_tensor(const Mapping &mapping, + const DH &dof, + const InputVector &solution, + const TriaActiveIterator < dealii::DoFCellAccessor < DH, false > > &cell, + Tensor &derivative, + const unsigned int component = 0); /** * Same as above, with mapping=MappingQ1@(). */ - template + template void - approximate_derivative_tensor (const DH &dof, - const InputVector &solution, - const typename DH::active_cell_iterator &cell, - Tensor &derivative, - const unsigned int component = 0); + approximate_derivative_tensor(const DH &dof, + const InputVector &solution, + const TriaActiveIterator < dealii::DoFCellAccessor < DH, false > > &cell, + Tensor &derivative, + const unsigned int component = 0); /** * Return the norm of the derivative. diff --git a/source/numerics/derivative_approximation.cc b/source/numerics/derivative_approximation.cc index 2518037bc9..daecca9c04 100644 --- a/source/numerics/derivative_approximation.cc +++ b/source/numerics/derivative_approximation.cc @@ -1070,14 +1070,14 @@ namespace DerivativeApproximation } - template + template void - approximate_derivative_tensor (const Mapping &mapping, - const DH &dof, - const InputVector &solution, - const typename DH::active_cell_iterator &cell, - Tensor &derivative, - const unsigned int component) + approximate_derivative_tensor(const Mapping &mapping, + const DH &dof, + const InputVector &solution, + const TriaActiveIterator < dealii::DoFCellAccessor < DH, false > > &cell, + Tensor &derivative, + const unsigned int component) { internal::approximate_cell::DerivDescr> (mapping, @@ -1090,17 +1090,17 @@ namespace DerivativeApproximation - template + template void - approximate_derivative_tensor (const DH &dof, - const InputVector &solution, - const typename DH::active_cell_iterator &cell, - Tensor &derivative, - const unsigned int component) + approximate_derivative_tensor(const DH &dof, + const InputVector &solution, + const TriaActiveIterator < dealii::DoFCellAccessor < DH, false > > &cell, + Tensor &derivative, + const unsigned int component) { // just call the respective function with Q1 mapping - approximate_derivative_tensor - (StaticMappingQ1::mapping, + approximate_derivative_tensor + (StaticMappingQ1::mapping, dof, solution, cell, diff --git a/source/numerics/derivative_approximation.inst.in b/source/numerics/derivative_approximation.inst.in index 76ced0f6d5..044f75fa21 100644 --- a/source/numerics/derivative_approximation.inst.in +++ b/source/numerics/derivative_approximation.inst.in @@ -54,60 +54,60 @@ approximate_second_derivative template void -approximate_derivative_tensor -(const Mapping::dimension,DH::space_dimension> &mapping, - const DH &dof_handler, +approximate_derivative_tensor < DH , deal_II_dimension, deal_II_dimension, VEC, 1 > +(const Mapping &mapping, + const DH &dof_handler, const VEC &solution, - const DH::active_cell_iterator &cell, - Tensor<1,DH::dimension> &derivative, + const DH ::active_cell_iterator &cell, + Tensor<1,deal_II_dimension> &derivative, const unsigned int component); template void -approximate_derivative_tensor -(const Mapping::dimension,DH::space_dimension> &mapping, - const DH &dof_handler, +approximate_derivative_tensor < DH , deal_II_dimension, deal_II_dimension, VEC, 2 > +(const Mapping &mapping, + const DH &dof_handler, const VEC &solution, - const DH::active_cell_iterator &cell, - Tensor<2,DH::dimension> &derivative, + const DH ::active_cell_iterator &cell, + Tensor<2,deal_II_dimension> &derivative, const unsigned int component); template void -approximate_derivative_tensor -(const Mapping::dimension,DH::space_dimension> &mapping, - const DH &dof_handler, +approximate_derivative_tensor < DH , deal_II_dimension, deal_II_dimension, VEC, 3 > +(const Mapping &mapping, + const DH &dof_handler, const VEC &solution, - const DH::active_cell_iterator &cell, - Tensor<3,DH::dimension> &derivative, + const DH ::active_cell_iterator &cell, + Tensor<3,deal_II_dimension> &derivative, const unsigned int component); template void -approximate_derivative_tensor -(const DH &dof_handler, +approximate_derivative_tensor < DH , deal_II_dimension, deal_II_dimension, VEC, 1 > +(const DH &dof_handler, const VEC &solution, - const DH::active_cell_iterator &cell, - Tensor<1,DH::dimension> &derivative, + const DH ::active_cell_iterator &cell, + Tensor<1,deal_II_dimension> &derivative, const unsigned int component); template void -approximate_derivative_tensor -(const DH &dof_handler, +approximate_derivative_tensor < DH , deal_II_dimension, deal_II_dimension, VEC, 2 > +(const DH &dof_handler, const VEC &solution, - const DH::active_cell_iterator &cell, - Tensor<2,DH::dimension> &derivative, + const DH ::active_cell_iterator &cell, + Tensor<2,deal_II_dimension> &derivative, const unsigned int component); template void -approximate_derivative_tensor -(const DH &dof_handler, +approximate_derivative_tensor < DH , deal_II_dimension, deal_II_dimension, VEC, 3 > +(const DH &dof_handler, const VEC &solution, - const DH::active_cell_iterator &cell, - Tensor<3,DH::dimension> &derivative, + const DH ::active_cell_iterator &cell, + Tensor<3,deal_II_dimension> &derivative, const unsigned int component); \}