]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Change the signature of approximate_derivative_tensor in hopes of convincing MS Visua...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Apr 2014 16:14:45 +0000 (16:14 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Apr 2014 16:14:45 +0000 (16:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@32724 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/numerics/derivative_approximation.h
deal.II/source/numerics/derivative_approximation.cc
deal.II/source/numerics/derivative_approximation.inst.in

index 660365f7b1da625b88d986668ac8fb8300c4cc50..7b43be815100313bb55d1e509961d4d386894c11 100644 (file)
@@ -270,24 +270,24 @@ namespace DerivativeApproximation
    * In a parallel computation the @p solution vector needs to contain the
    * locally relevant unknowns.
    */
-  template <int dim, template <int, int> class DH, class InputVector, int order, int spacedim>
+  template <class DH, class InputVector, int order>
   void
-  approximate_derivative_tensor (const Mapping<dim,spacedim>                           &mapping,
-                                 const DH<dim,spacedim>                                &dof,
+  approximate_derivative_tensor (const Mapping<DH::dimension,DH::space_dimension> &mapping,
+                                 const DH                                     &dof,
                                  const InputVector                            &solution,
-                                 const typename DH<dim,spacedim>::active_cell_iterator &cell,
-                                 Tensor<order,dim>                            &derivative,
+                                 const typename DH::active_cell_iterator      &cell,
+                                 Tensor<order,DH::dimension>                  &derivative,
                                  const unsigned int                            component = 0);
 
   /**
    * Same as above, with <tt>mapping=MappingQ1@<dim@>()</tt>.
    */
-  template <int dim, template <int, int> class DH, class InputVector, int order, int spacedim>
+  template <class DH, class InputVector, int order>
   void
-  approximate_derivative_tensor (const DH<dim,spacedim>                                &dof,
+  approximate_derivative_tensor (const DH                                     &dof,
                                  const InputVector                            &solution,
-                                 const typename DH<dim,spacedim>::active_cell_iterator &cell,
-                                 Tensor<order,dim>                            &derivative,
+                                 const typename DH::active_cell_iterator      &cell,
+                                 Tensor<order,DH::dimension>                  &derivative,
                                  const unsigned int                            component = 0);
 
   /**
index 4cf3e4bed69854b6d9468b8c4c649ae7339aa9d5..65e9d3a10a7c9900806f15035afd662d34022605 100644 (file)
@@ -1072,16 +1072,16 @@ namespace DerivativeApproximation
   }
 
 
-  template <int dim, template <int, int> class DH, class InputVector, int order, int spacedim>
+  template <class DH, class InputVector, int order>
   void
-  approximate_derivative_tensor (const Mapping<dim,spacedim>                           &mapping,
-                                 const DH<dim,spacedim>                                &dof,
+  approximate_derivative_tensor (const Mapping<DH::dimension,DH::space_dimension> &mapping,
+                                 const DH                                     &dof,
                                  const InputVector                            &solution,
-                                 const typename DH<dim,spacedim>::active_cell_iterator &cell,
-                                 Tensor<order,dim>                            &derivative,
-                                 const unsigned int                            component)
+                                 const typename DH::active_cell_iterator      &cell,
+                                 Tensor<order,DH::dimension>                  &derivative,
+                                 const unsigned int                            component = 0)
   {
-      internal::approximate_cell<typename internal::DerivativeSelector<order,dim>::DerivDescr,dim,DH,InputVector>
+      internal::approximate_cell<typename internal::DerivativeSelector<order,DH::dimension>::DerivDescr>
       (mapping,
           dof,
           solution,
@@ -1092,17 +1092,17 @@ namespace DerivativeApproximation
 
 
 
-  template <int dim, template <int, int> class DH, class InputVector, int order, int spacedim>
+  template <class DH, class InputVector, int order>
   void
-  approximate_derivative_tensor (const DH<dim,spacedim>                                &dof,
+  approximate_derivative_tensor (const DH                                     &dof,
                                  const InputVector                            &solution,
-                                 const typename DH<dim,spacedim>::active_cell_iterator &cell,
-                                 Tensor<order,dim>                            &derivative,
-                                 const unsigned int                            component)
+                                 const typename DH::active_cell_iterator      &cell,
+                                 Tensor<order,DH::dimension>                  &derivative,
+                                 const unsigned int                            component = 0)
   {
       // just call the respective function with Q1 mapping
-      approximate_derivative_tensor<dim,DH,InputVector,order,spacedim>
-      (StaticMappingQ1<dim>::mapping,
+      approximate_derivative_tensor<DH,InputVector,order>
+      (StaticMappingQ1<DH::dimension,DH::space_dimension>::mapping,
           dof,
           solution,
           cell,
index 430c8a095f0e7ebdbf738369e7ecc61763218725..10494f168be02d791d543b2ade11e0c574a0ca5f 100644 (file)
@@ -55,7 +55,7 @@ approximate_second_derivative<deal_II_dimension>
 
 template
 void
-approximate_derivative_tensor<deal_II_dimension>
+approximate_derivative_tensor
 (const Mapping<deal_II_dimension> &    mapping,
  const DH<deal_II_dimension> &dof_handler,
  const VEC &solution,
@@ -65,7 +65,7 @@ approximate_derivative_tensor<deal_II_dimension>
 
 template
 void
-approximate_derivative_tensor<deal_II_dimension>
+approximate_derivative_tensor
 (const Mapping<deal_II_dimension> &    mapping,
  const DH<deal_II_dimension> &dof_handler,
  const VEC &solution,
@@ -75,7 +75,7 @@ approximate_derivative_tensor<deal_II_dimension>
 
 template
 void
-approximate_derivative_tensor<deal_II_dimension>
+approximate_derivative_tensor
 (const Mapping<deal_II_dimension> &    mapping,
  const DH<deal_II_dimension> &dof_handler,
  const VEC &solution,
@@ -85,7 +85,7 @@ approximate_derivative_tensor<deal_II_dimension>
 
 template
 void
-approximate_derivative_tensor<deal_II_dimension>
+approximate_derivative_tensor
 (const DH<deal_II_dimension> &dof_handler,
  const VEC &solution,
  const DH<deal_II_dimension>::active_cell_iterator &cell,
@@ -94,7 +94,7 @@ approximate_derivative_tensor<deal_II_dimension>
 
 template
 void
-approximate_derivative_tensor<deal_II_dimension>
+approximate_derivative_tensor
 (const DH<deal_II_dimension> &dof_handler,
  const VEC &solution,
  const DH<deal_II_dimension>::active_cell_iterator &cell,
@@ -103,7 +103,7 @@ approximate_derivative_tensor<deal_II_dimension>
 
 template
 void
-approximate_derivative_tensor<deal_II_dimension>
+approximate_derivative_tensor
 (const DH<deal_II_dimension> &dof_handler,
  const VEC &solution,
  const DH<deal_II_dimension>::active_cell_iterator &cell,

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.