]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Reorder the arguments to Mapping::transform().
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 2 Sep 2015 14:59:33 +0000 (09:59 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 2 Sep 2015 14:59:33 +0000 (09:59 -0500)
14 files changed:
include/deal.II/fe/fe_poly.templates.h
include/deal.II/fe/mapping.h
include/deal.II/fe/mapping_cartesian.h
include/deal.II/fe/mapping_fe_field.h
include/deal.II/fe/mapping_q.h
include/deal.II/fe/mapping_q1.h
source/fe/fe.cc
source/fe/fe_poly.cc
source/fe/fe_poly_tensor.cc
source/fe/fe_values.cc
source/fe/mapping_cartesian.cc
source/fe/mapping_fe_field.cc
source/fe/mapping_q.cc
source/fe/mapping_q1.cc

index a9ac62087a489f753f18d9203e329363f4defa6c..6050446263676b93b051866e2025b00b89d27bac 100644 (file)
@@ -244,9 +244,10 @@ fill_fe_values (const Mapping<dim,spacedim>                                  &ma
           output_data.shape_values(k,i) = fe_data.shape_values[k][i];
 
       if (flags & update_gradients && cell_similarity != CellSimilarity::translation)
-        mapping.transform(fe_data.shape_gradients[k],
-                          output_data.shape_gradients[k],
-                          mapping_internal, mapping_covariant);
+        mapping.transform (fe_data.shape_gradients[k],
+                           mapping_covariant,
+                           mapping_internal,
+                           output_data.shape_gradients[k]);
 
       if (flags & update_hessians && cell_similarity != CellSimilarity::translation)
         {
@@ -259,9 +260,10 @@ fill_fe_values (const Mapping<dim,spacedim>                                  &ma
           correct_untransformed_hessians (fe_data.untransformed_shape_hessians,
                                           mapping_data, output_data, quadrature.size(), k);
 
-          mapping.transform(fe_data.untransformed_shape_hessians,
-                            output_data.shape_hessians[k],
-                            mapping_internal, mapping_covariant_gradient);
+          mapping.transform (fe_data.untransformed_shape_hessians,
+                             mapping_covariant_gradient,
+                             mapping_internal,
+                             output_data.shape_hessians[k]);
         }
     }
 }
@@ -307,9 +309,10 @@ fill_fe_face_values (const Mapping<dim,spacedim>
           output_data.shape_values(k,i) = fe_data.shape_values[k][i+offset];
 
       if (flags & update_gradients)
-        mapping.transform(make_slice(fe_data.shape_gradients[k], offset, quadrature.size()),
-                          output_data.shape_gradients[k],
-                          mapping_internal, mapping_covariant);
+        mapping.transform (make_slice(fe_data.shape_gradients[k], offset, quadrature.size()),
+                           mapping_covariant,
+                           mapping_internal,
+                           output_data.shape_gradients[k]);
 
       if (flags & update_hessians)
         {
@@ -323,8 +326,12 @@ fill_fe_face_values (const Mapping<dim,spacedim>
                                          ( fe_data.untransformed_shape_hessians, offset , quadrature.size()),
                                          mapping_data, output_data, quadrature.size(), k);
 
-          mapping.transform(make_slice(fe_data.untransformed_shape_hessians, offset, quadrature.size()),
-                            output_data.shape_hessians[k], mapping_internal, mapping_covariant_gradient);
+          mapping.transform (make_slice(fe_data.untransformed_shape_hessians,
+                                        offset,
+                                        quadrature.size()),
+                             mapping_covariant_gradient,
+                             mapping_internal,
+                             output_data.shape_hessians[k]);
         }
     }
 }
@@ -370,9 +377,10 @@ fill_fe_subface_values (const Mapping<dim,spacedim>
           output_data.shape_values(k,i) = fe_data.shape_values[k][i+offset];
 
       if (flags & update_gradients)
-        mapping.transform(make_slice(fe_data.shape_gradients[k], offset, quadrature.size()),
-                          output_data.shape_gradients[k],
-                          mapping_internal, mapping_covariant);
+        mapping.transform (make_slice(fe_data.shape_gradients[k], offset, quadrature.size()),
+                           mapping_covariant,
+                           mapping_internal,
+                           output_data.shape_gradients[k]);
 
       if (flags & update_hessians)
         {
@@ -383,11 +391,20 @@ fill_fe_subface_values (const Mapping<dim,spacedim>
             }
 
           correct_untransformed_hessians(VectorSlice< std::vector<Tensor<2,dim> > >
-                                         ( fe_data.untransformed_shape_hessians, offset , quadrature.size()),
-                                         mapping_data, output_data, quadrature.size(), k);
-
-          mapping.transform(make_slice(fe_data.untransformed_shape_hessians, offset, quadrature.size()),
-                            output_data.shape_hessians[k], mapping_internal, mapping_covariant_gradient);
+                                         (fe_data.untransformed_shape_hessians,
+                                          offset,
+                                          quadrature.size()),
+                                         mapping_data,
+                                         output_data,
+                                         quadrature.size(),
+                                         k);
+
+          mapping.transform (make_slice(fe_data.untransformed_shape_hessians,
+                                        offset,
+                                        quadrature.size()),
+                             mapping_covariant_gradient,
+                             mapping_internal,
+                             output_data.shape_hessians[k]);
         }
     }
 }
index 96403dbf47e99010c699e62347ca249d58ce7726..6e7eefce2d0053110c3367b7c64904a4ed87c526 100644 (file)
@@ -910,10 +910,10 @@ public:
    */
   virtual
   void
-  transform (const VectorSlice<const std::vector<Tensor<1,dim> > > input,
-             VectorSlice<std::vector<Tensor<1,spacedim> > >        output,
+  transform (const VectorSlice<const std::vector<Tensor<1,dim> > >   input,
+             const MappingType                                       type,
              const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const = 0;
+             VectorSlice<std::vector<Tensor<1,spacedim> > >          output) const = 0;
 
 
 
@@ -949,9 +949,9 @@ public:
   virtual
   void
   transform (const VectorSlice<const std::vector< DerivativeForm<1, dim, spacedim> > > input,
-             VectorSlice<std::vector<Tensor<2,spacedim> > >             output,
-             const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const = 0;
+             const MappingType                                                         type,
+             const typename Mapping<dim,spacedim>::InternalDataBase                   &internal,
+             VectorSlice<std::vector<Tensor<2,spacedim> > >                            output) const = 0;
 
 
   /**
@@ -992,10 +992,10 @@ public:
    */
   virtual
   void
-  transform (const VectorSlice<const std::vector<Tensor<2, dim> > >     input,
-             VectorSlice<std::vector<Tensor<2,spacedim> > >             output,
+  transform (const VectorSlice<const std::vector<Tensor<2, dim> > >  input,
+             const MappingType                                       type,
              const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const = 0;
+             VectorSlice<std::vector<Tensor<2,spacedim> > >          output) const = 0;
 
   /**
    * Transform a tensor field from the reference cell to the physical cell.
@@ -1023,9 +1023,9 @@ public:
   virtual
   void
   transform (const VectorSlice<const std::vector< DerivativeForm<2, dim, spacedim> > > input,
-             VectorSlice<std::vector<Tensor<3,spacedim> > >             output,
-             const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const = 0;
+             const MappingType                                                         type,
+             const typename Mapping<dim,spacedim>::InternalDataBase                   &internal,
+             VectorSlice<std::vector<Tensor<3,spacedim> > >                            output) const = 0;
 
   /**
    * Transform a field of 3-differential forms from the reference cell to the
@@ -1062,10 +1062,10 @@ public:
    */
   virtual
   void
-  transform (const VectorSlice<const std::vector<Tensor<3, dim> > >     input,
-             VectorSlice<std::vector<Tensor<3,spacedim> > >             output,
+  transform (const VectorSlice<const std::vector<Tensor<3, dim> > >  input,
+             const MappingType                                       type,
              const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const = 0;
+             VectorSlice<std::vector<Tensor<3,spacedim> > >          output) const = 0;
 
   /**
    * @}
index f830b9e001bf91e334d56cac19972bbd370b68df..fba4ce74bde250589ac8c8868072e91c390c9584 100644 (file)
@@ -92,42 +92,44 @@ public:
    */
 
   // for documentation, see the Mapping base class
-  virtual void
-  transform (const VectorSlice<const std::vector<Tensor<1,dim> > > input,
-             VectorSlice<std::vector<Tensor<1,spacedim> > > output,
+  virtual
+  void
+  transform (const VectorSlice<const std::vector<Tensor<1,dim> > >   input,
+             const MappingType                                       type,
              const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             VectorSlice<std::vector<Tensor<1,spacedim> > >          output) const;
 
   // for documentation, see the Mapping base class
-  virtual void
+  virtual
+  void
   transform (const VectorSlice<const std::vector<DerivativeForm<1, dim,spacedim> > > input,
-             VectorSlice<std::vector<Tensor<2,spacedim> > > output,
-             const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             const MappingType                                                       type,
+             const typename Mapping<dim,spacedim>::InternalDataBase                 &internal,
+             VectorSlice<std::vector<Tensor<2,spacedim> > >                          output) const;
 
   // for documentation, see the Mapping base class
   virtual
   void
-  transform (const VectorSlice<const std::vector<Tensor<2, dim> > >     input,
-             VectorSlice<std::vector<Tensor<2,spacedim> > >             output,
+  transform (const VectorSlice<const std::vector<Tensor<2, dim> > >  input,
+             const MappingType                                       type,
              const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             VectorSlice<std::vector<Tensor<2,spacedim> > >          output) const;
 
   // for documentation, see the Mapping base class
   virtual
   void
   transform (const VectorSlice<const std::vector< DerivativeForm<2, dim, spacedim> > > input,
-             VectorSlice<std::vector<Tensor<3,spacedim> > >             output,
-             const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             const MappingType                                                         type,
+             const typename Mapping<dim,spacedim>::InternalDataBase                   &internal,
+             VectorSlice<std::vector<Tensor<3,spacedim> > >                            output) const;
 
   // for documentation, see the Mapping base class
   virtual
   void
-  transform (const VectorSlice<const std::vector<Tensor<3, dim> > >     input,
-             VectorSlice<std::vector<Tensor<3,spacedim> > >             output,
+  transform (const VectorSlice<const std::vector<Tensor<3, dim> > >  input,
+             const MappingType                                       type,
              const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             VectorSlice<std::vector<Tensor<3,spacedim> > >          output) const;
 
   /**
    * @}
index 6f2b106c5af663d0f63ff0a99571d3d40309c7f6..8983d1e33d8f946e32394074cd4d36ddc7864527 100644 (file)
@@ -160,42 +160,42 @@ public:
   // for documentation, see the Mapping base class
   virtual
   void
-  transform (const VectorSlice<const std::vector<Tensor<1,dim> > > input,
-             VectorSlice<std::vector<Tensor<1,spacedim> > > output,
+  transform (const VectorSlice<const std::vector<Tensor<1,dim> > >   input,
+             const MappingType                                       type,
              const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             VectorSlice<std::vector<Tensor<1,spacedim> > >          output) const;
 
   // for documentation, see the Mapping base class
   virtual
   void
-  transform (const VectorSlice<const std::vector<DerivativeForm<1, dim, spacedim> > >    input,
-             VectorSlice<std::vector<Tensor<2,spacedim> > > output,
-             const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+  transform (const VectorSlice<const std::vector<DerivativeForm<1, dim, spacedim> > > input,
+             const MappingType                                                        type,
+             const typename Mapping<dim,spacedim>::InternalDataBase                  &internal,
+             VectorSlice<std::vector<Tensor<2,spacedim> > >                           output) const;
 
   // for documentation, see the Mapping base class
   virtual
   void
-  transform (const VectorSlice<const std::vector<Tensor<2, dim> > >     input,
-             VectorSlice<std::vector<Tensor<2,spacedim> > >             output,
+  transform (const VectorSlice<const std::vector<Tensor<2, dim> > >  input,
+             const MappingType                                       type,
              const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             VectorSlice<std::vector<Tensor<2,spacedim> > >          output) const;
 
   // for documentation, see the Mapping base class
   virtual
   void
   transform (const VectorSlice<const std::vector< DerivativeForm<2, dim, spacedim> > > input,
-             VectorSlice<std::vector<Tensor<3,spacedim> > >             output,
-             const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             const MappingType                                                         type,
+             const typename Mapping<dim,spacedim>::InternalDataBase                   &internal,
+             VectorSlice<std::vector<Tensor<3,spacedim> > >                            output) const;
 
   // for documentation, see the Mapping base class
   virtual
   void
-  transform (const VectorSlice<const std::vector<Tensor<3, dim> > >     input,
-             VectorSlice<std::vector<Tensor<3,spacedim> > >             output,
+  transform (const VectorSlice<const std::vector<Tensor<3, dim> > >  input,
+             const MappingType                                       type,
              const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             VectorSlice<std::vector<Tensor<3,spacedim> > >          output) const;
 
   /**
    * @}
index a02259e448f0eb3d5507213830b28037f98564a2..35252a8a480859f3b0db280a8f6f6327243365d5 100644 (file)
@@ -118,24 +118,26 @@ public:
     const typename Triangulation<dim,spacedim>::cell_iterator &cell,
     const Point<spacedim>                            &p) const;
 
-  virtual void
-  transform (const VectorSlice<const std::vector<Tensor<1,dim> > > input,
-             VectorSlice<std::vector<Tensor<1,spacedim> > > output,
+  virtual
+  void
+  transform (const VectorSlice<const std::vector<Tensor<1,dim> > >   input,
+             const MappingType                                       type,
              const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             VectorSlice<std::vector<Tensor<1,spacedim> > >          output) const;
 
-  virtual void
-  transform (const VectorSlice<const std::vector<DerivativeForm<1, dim, spacedim> > >    input,
-             VectorSlice<std::vector<Tensor<2,spacedim> > > output,
-             const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+  virtual
+  void
+  transform (const VectorSlice<const std::vector<DerivativeForm<1, dim, spacedim> > > input,
+             const MappingType                                                        type,
+             const typename Mapping<dim,spacedim>::InternalDataBase                  &internal,
+             VectorSlice<std::vector<Tensor<2,spacedim> > >                           output) const;
 
   virtual
   void
-  transform (const VectorSlice<const std::vector<Tensor<2, dim> > >     input,
-             VectorSlice<std::vector<Tensor<2,spacedim> > >             output,
+  transform (const VectorSlice<const std::vector<Tensor<2, dim> > >  input,
+             const MappingType                                       type,
              const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             VectorSlice<std::vector<Tensor<2,spacedim> > >          output) const;
 
   /**
    * Return the degree of the mapping, i.e. the value which was passed to the
index e09340b9efe9e2ef348cf7caaf9cb42c62401847..1b4c05bc77939d2a8a4e430efd644f9f4bc11130 100644 (file)
@@ -98,42 +98,42 @@ public:
   // for documentation, see the Mapping base class
   virtual
   void
-  transform (const VectorSlice<const std::vector<Tensor<1,dim> > > input,
-             VectorSlice<std::vector<Tensor<1,spacedim> > > output,
+  transform (const VectorSlice<const std::vector<Tensor<1,dim> > >   input,
+             const MappingType                                       type,
              const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             VectorSlice<std::vector<Tensor<1,spacedim> > >          output) const;
 
   // for documentation, see the Mapping base class
   virtual
   void
-  transform (const VectorSlice<const std::vector<DerivativeForm<1, dim,spacedim> > >    input,
-             VectorSlice<std::vector<Tensor<2,spacedim> > > output,
-             const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+  transform (const VectorSlice<const std::vector<DerivativeForm<1, dim,spacedim> > > input,
+             const MappingType                                                       type,
+             const typename Mapping<dim,spacedim>::InternalDataBase                 &internal,
+             VectorSlice<std::vector<Tensor<2,spacedim> > >                          output) const;
 
   // for documentation, see the Mapping base class
   virtual
   void
-  transform (const VectorSlice<const std::vector<Tensor<2, dim> > >     input,
-             VectorSlice<std::vector<Tensor<2,spacedim> > >             output,
+  transform (const VectorSlice<const std::vector<Tensor<2, dim> > >  input,
+             const MappingType                                       type,
              const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             VectorSlice<std::vector<Tensor<2,spacedim> > >          output) const;
 
   // for documentation, see the Mapping base class
   virtual
   void
   transform (const VectorSlice<const std::vector< DerivativeForm<2, dim, spacedim> > > input,
-             VectorSlice<std::vector<Tensor<3,spacedim> > >             output,
-             const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             const MappingType                                                         type,
+             const typename Mapping<dim,spacedim>::InternalDataBase                   &internal,
+             VectorSlice<std::vector<Tensor<3,spacedim> > >                            output) const;
 
   // for documentation, see the Mapping base class
   virtual
   void
-  transform (const VectorSlice<const std::vector<Tensor<3, dim> > >     input,
-             VectorSlice<std::vector<Tensor<3,spacedim> > >             output,
+  transform (const VectorSlice<const std::vector<Tensor<3, dim> > >  input,
+             const MappingType                                       type,
              const typename Mapping<dim,spacedim>::InternalDataBase &internal,
-             const MappingType type) const;
+             VectorSlice<std::vector<Tensor<3,spacedim> > >          output) const;
 
   /**
    * @}
index 4d0c5cdd2f21d667cf93bf69b7f1ff83d52b9032..28d06a68f65eb649e972983feb7416b87861268f 100644 (file)
@@ -1461,7 +1461,7 @@ FiniteElement<dim,spacedim>::compute_2nd (
         // cell
         for (unsigned int d=0; d<spacedim; ++d)
           {
-            mapping.transform (diff_quot[d], diff_quot2, mapping_internal, mapping_covariant);
+            mapping.transform (diff_quot[d], mapping_covariant, mapping_internal, diff_quot2);
 
             for (unsigned int q=0; q<n_q_points; ++q)
               for (unsigned int d1=0; d1<spacedim; ++d1)
index 9fe3a4650d714b1a181050a9822440d7e5631de3..6013677501b0adb54e3dde1d0439851b9d94724a 100644 (file)
@@ -56,9 +56,10 @@ fill_fe_values (const Mapping<1,2>                                &mapping,
           output_data.shape_values(k,i) = fe_data.shape_values[k][i];
 
       if (flags & update_gradients && cell_similarity != CellSimilarity::translation)
-        mapping.transform(fe_data.shape_gradients[k],
-                          output_data.shape_gradients[k],
-                          mapping_internal, mapping_covariant);
+        mapping.transform (fe_data.shape_gradients[k],
+                           mapping_covariant,
+                           mapping_internal,
+                           output_data.shape_gradients[k]);
 
       if (flags & update_hessians && cell_similarity != CellSimilarity::translation)
         {
@@ -71,9 +72,10 @@ fill_fe_values (const Mapping<1,2>                                &mapping,
           correct_untransformed_hessians (fe_data.untransformed_shape_hessians,
                                           mapping_data, output_data, quadrature.size(), k);
 
-          mapping.transform(fe_data.untransformed_shape_hessians,
-                            output_data.shape_hessians[k],
-                            mapping_internal, mapping_covariant_gradient);
+          mapping.transform (fe_data.untransformed_shape_hessians,
+                             mapping_covariant_gradient,
+                             mapping_internal,
+                             output_data.shape_hessians[k]);
         }
     }
 }
@@ -107,9 +109,10 @@ fill_fe_values (const Mapping<2,3>                                &mapping,
           output_data.shape_values(k,i) = fe_data.shape_values[k][i];
 
       if (flags & update_gradients && cell_similarity != CellSimilarity::translation)
-        mapping.transform(fe_data.shape_gradients[k],
-                          output_data.shape_gradients[k],
-                          mapping_internal, mapping_covariant);
+        mapping.transform (fe_data.shape_gradients[k],
+                           mapping_covariant,
+                           mapping_internal,
+                           output_data.shape_gradients[k]);
 
       if (flags & update_hessians && cell_similarity != CellSimilarity::translation)
         {
@@ -122,9 +125,10 @@ fill_fe_values (const Mapping<2,3>                                &mapping,
           correct_untransformed_hessians (fe_data.untransformed_shape_hessians,
                                           mapping_data, output_data, quadrature.size(), k);
 
-          mapping.transform(fe_data.untransformed_shape_hessians,
-                            output_data.shape_hessians[k],
-                            mapping_internal, mapping_covariant_gradient);
+          mapping.transform (fe_data.untransformed_shape_hessians,
+                             mapping_covariant_gradient,
+                             mapping_internal,
+                             output_data.shape_hessians[k]);
         }
     }
 }
@@ -159,9 +163,10 @@ fill_fe_values (const Mapping<1,2>                                &mapping,
           output_data.shape_values(k,i) = fe_data.shape_values[k][i];
 
       if (flags & update_gradients && cell_similarity != CellSimilarity::translation)
-        mapping.transform(fe_data.shape_gradients[k],
-                          output_data.shape_gradients[k],
-                          mapping_internal, mapping_covariant);
+        mapping.transform (fe_data.shape_gradients[k],
+                           mapping_covariant,
+                           mapping_internal,
+                           output_data.shape_gradients[k]);
 
       if (flags & update_hessians && cell_similarity != CellSimilarity::translation)
         {
@@ -174,9 +179,10 @@ fill_fe_values (const Mapping<1,2>                                &mapping,
           correct_untransformed_hessians (fe_data.untransformed_shape_hessians,
                                           mapping_data, output_data, quadrature.size(), k);
 
-          mapping.transform(fe_data.untransformed_shape_hessians,
-                            output_data.shape_hessians[k],
-                            mapping_internal, mapping_covariant_gradient);
+          mapping.transform (fe_data.untransformed_shape_hessians,
+                             mapping_covariant_gradient,
+                             mapping_internal,
+                             output_data.shape_hessians[k]);
         }
     }
 }
@@ -207,9 +213,10 @@ fill_fe_values (const Mapping<2,3>                                &mapping,
 
 
       if (flags & update_gradients && cell_similarity != CellSimilarity::translation)
-        mapping.transform(fe_data.shape_gradients[k],
-                          output_data.shape_gradients[k],
-                          mapping_internal, mapping_covariant);
+        mapping.transform (fe_data.shape_gradients[k],
+                           mapping_covariant,
+                           mapping_internal,
+                           output_data.shape_gradients[k]);
 
       if (flags & update_hessians && cell_similarity != CellSimilarity::translation)
         {
@@ -222,9 +229,10 @@ fill_fe_values (const Mapping<2,3>                                &mapping,
           correct_untransformed_hessians (fe_data.untransformed_shape_hessians,
                                           mapping_data, output_data, quadrature.size(), k);
 
-          mapping.transform(fe_data.untransformed_shape_hessians,
-                            output_data.shape_hessians[k],
-                            mapping_internal, mapping_covariant_gradient);
+          mapping.transform (fe_data.untransformed_shape_hessians,
+                             mapping_covariant_gradient,
+                             mapping_internal,
+                             output_data.shape_hessians[k]);
         }
     }
 }
index 11242ad8caba87ac88497e19c80483670df5fade..a71302ea834e8621755feefed26e3782a659874c 100644 (file)
@@ -328,8 +328,10 @@ fill_fe_values (const Mapping<dim,spacedim>                                  &ma
 
 
   if ( (flags & update_gradients) && mapping_type != mapping_none )
-    mapping.transform(mapping_data.jacobian_grads, fe_data.transformed_jacobian_grads,
-                      mapping_internal, mapping_covariant_gradient);
+    mapping.transform (mapping_data.jacobian_grads,
+                       mapping_covariant_gradient,
+                       mapping_internal,
+                       fe_data.transformed_jacobian_grads);
 
   for (unsigned int i=0; i<this->dofs_per_cell; ++i)
     {
@@ -361,8 +363,10 @@ fill_fe_values (const Mapping<dim,spacedim>                                  &ma
             case mapping_covariant:
             case mapping_contravariant:
             {
-              mapping.transform(fe_data.shape_values[i],
-                                fe_data.transformed_shape_values, mapping_internal, mapping_type);
+              mapping.transform (fe_data.shape_values[i],
+                                 mapping_type,
+                                 mapping_internal,
+                                 fe_data.transformed_shape_values);
 
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<dim; ++d)
@@ -374,8 +378,10 @@ fill_fe_values (const Mapping<dim,spacedim>                                  &ma
             case mapping_raviart_thomas:
             case mapping_piola:
             {
-              mapping.transform(fe_data.shape_values[i], fe_data.transformed_shape_values,
-                                mapping_internal, mapping_piola);
+              mapping.transform (fe_data.shape_values[i],
+                                 mapping_piola,
+                                 mapping_internal,
+                                 fe_data.transformed_shape_values);
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<dim; ++d)
                   output_data.shape_values(first+d,k)
@@ -385,8 +391,10 @@ fill_fe_values (const Mapping<dim,spacedim>                                  &ma
 
             case mapping_nedelec:
             {
-              mapping.transform (fe_data.shape_values[i], fe_data.transformed_shape_values,
-                                 mapping_internal, mapping_covariant);
+              mapping.transform (fe_data.shape_values[i],
+                                 mapping_covariant,
+                                 mapping_internal,
+                                 fe_data.transformed_shape_values);
 
               for (unsigned int k = 0; k < n_q_points; ++k)
                 for (unsigned int d = 0; d < dim; ++d)
@@ -414,8 +422,10 @@ fill_fe_values (const Mapping<dim,spacedim>                                  &ma
             {
             case mapping_none:
             {
-              mapping.transform(fe_data.shape_grads[i], fe_data.transformed_shape_grads,
-                                mapping_internal, mapping_covariant);
+              mapping.transform (fe_data.shape_grads[i],
+                                 mapping_covariant,
+                                 mapping_internal,
+                                 fe_data.transformed_shape_grads);
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<dim; ++d)
                   output_data.shape_gradients[first+d][k] = fe_data.transformed_shape_grads[k][d];
@@ -423,8 +433,10 @@ fill_fe_values (const Mapping<dim,spacedim>                                  &ma
             }
             case mapping_covariant:
             {
-              mapping.transform(fe_data.shape_grads[i], fe_data.transformed_shape_grads,
-                                mapping_internal, mapping_covariant_gradient);
+              mapping.transform (fe_data.shape_grads[i],
+                                 mapping_covariant_gradient,
+                                 mapping_internal,
+                                 fe_data.transformed_shape_grads);
 
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<spacedim; ++d)
@@ -440,8 +452,10 @@ fill_fe_values (const Mapping<dim,spacedim>                                  &ma
             }
             case mapping_contravariant:
             {
-              mapping.transform(fe_data.shape_grads[i], fe_data.transformed_shape_grads,
-                                mapping_internal, mapping_contravariant_gradient);
+              mapping.transform(fe_data.shape_grads[i],
+                                mapping_contravariant_gradient,
+                                mapping_internal,
+                                fe_data.transformed_shape_grads);
 
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<spacedim; ++d)
@@ -461,8 +475,10 @@ fill_fe_values (const Mapping<dim,spacedim>                                  &ma
             {
               for (unsigned int k=0; k<n_q_points; ++k)
                 fe_data.untransformed_shape_grads[k] = fe_data.shape_grads[i][k];
-              mapping.transform(fe_data.untransformed_shape_grads, fe_data.transformed_shape_grads,
-                                mapping_internal, mapping_piola_gradient);
+              mapping.transform (fe_data.untransformed_shape_grads,
+                                 mapping_piola_gradient,
+                                 mapping_internal,
+                                 fe_data.transformed_shape_grads);
 
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<spacedim; ++d)
@@ -495,8 +511,10 @@ fill_fe_values (const Mapping<dim,spacedim>                                  &ma
               for (unsigned int k=0; k<n_q_points; ++k)
                 fe_data.untransformed_shape_grads[k] = fe_data.shape_grads[i][k];
 
-              mapping.transform (fe_data.untransformed_shape_grads,fe_data.transformed_shape_grads,
-                                 mapping_internal, mapping_covariant_gradient);
+              mapping.transform (fe_data.untransformed_shape_grads,
+                                 mapping_covariant_gradient,
+                                 mapping_internal,
+                                 fe_data.transformed_shape_grads);
 
 
               for (unsigned int k=0; k<n_q_points; ++k)
@@ -585,10 +603,11 @@ fill_fe_face_values (const Mapping<dim,spacedim>
     get_face_sign_change_nedelec (cell, this->dofs_per_face, fe_data.sign_change);
 
   if ( (flags & update_gradients) && mapping_type != mapping_none )
-    mapping.transform(mapping_data.jacobian_grads,
-                      VectorSlice< std::vector<Tensor<3,spacedim> > >
-                      (fe_data.transformed_jacobian_grads, offset, n_q_points),
-                      mapping_internal, mapping_covariant_gradient);
+    mapping.transform (mapping_data.jacobian_grads,
+                       mapping_covariant_gradient,
+                       mapping_internal,
+                       VectorSlice< std::vector<Tensor<3,spacedim> > >
+                       (fe_data.transformed_jacobian_grads, offset, n_q_points));
 
   for (unsigned int i=0; i<this->dofs_per_cell; ++i)
     {
@@ -614,8 +633,10 @@ fill_fe_face_values (const Mapping<dim,spacedim>
             {
               // Use auxiliary vector
               // for transformation
-              mapping.transform(make_slice(fe_data.shape_values[i], offset, n_q_points),
-                                transformed_shape_values, mapping_internal, mapping_type);
+              mapping.transform (make_slice(fe_data.shape_values[i], offset, n_q_points),
+                                 mapping_type,
+                                 mapping_internal,
+                                 transformed_shape_values);
 
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<dim; ++d)
@@ -627,8 +648,10 @@ fill_fe_face_values (const Mapping<dim,spacedim>
             case mapping_piola:
             {
 
-              mapping.transform(make_slice(fe_data.shape_values[i], offset, n_q_points),
-                                transformed_shape_values, mapping_internal, mapping_piola);
+              mapping.transform (make_slice(fe_data.shape_values[i], offset, n_q_points),
+                                 mapping_piola,
+                                 mapping_internal,
+                                 transformed_shape_values);
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<dim; ++d)
                   output_data.shape_values(first+d,k)
@@ -639,7 +662,9 @@ fill_fe_face_values (const Mapping<dim,spacedim>
             case mapping_nedelec:
             {
               mapping.transform (make_slice (fe_data.shape_values[i], offset, n_q_points),
-                                 transformed_shape_values, mapping_internal, mapping_covariant);
+                                 mapping_covariant,
+                                 mapping_internal,
+                                 transformed_shape_values);
 
               for (unsigned int k = 0; k < n_q_points; ++k)
                 for (unsigned int d = 0; d < dim; ++d)
@@ -663,8 +688,10 @@ fill_fe_face_values (const Mapping<dim,spacedim>
             {
             case mapping_none:
             {
-              mapping.transform(make_slice(fe_data.shape_grads[i], offset, n_q_points),
-                                transformed_shape_grads, mapping_internal, mapping_covariant);
+              mapping.transform (make_slice(fe_data.shape_grads[i], offset, n_q_points),
+                                 mapping_covariant,
+                                 mapping_internal,
+                                 transformed_shape_grads);
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<dim; ++d)
                   output_data.shape_gradients[first+d][k] = transformed_shape_grads[k][d];
@@ -673,8 +700,10 @@ fill_fe_face_values (const Mapping<dim,spacedim>
 
             case mapping_covariant:
             {
-              mapping.transform(make_slice(fe_data.shape_grads[i], offset, n_q_points),
-                                transformed_shape_grads, mapping_internal, mapping_covariant_gradient);
+              mapping.transform (make_slice(fe_data.shape_grads[i], offset, n_q_points),
+                                 mapping_covariant_gradient,
+                                 mapping_internal,
+                                 transformed_shape_grads);
 
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<spacedim; ++d)
@@ -689,8 +718,10 @@ fill_fe_face_values (const Mapping<dim,spacedim>
             }
             case mapping_contravariant:
             {
-              mapping.transform(make_slice(fe_data.shape_grads[i], offset, n_q_points),
-                                transformed_shape_grads, mapping_internal, mapping_contravariant_gradient);
+              mapping.transform (make_slice(fe_data.shape_grads[i], offset, n_q_points),
+                                 mapping_contravariant_gradient,
+                                 mapping_internal,
+                                 transformed_shape_grads);
 
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<spacedim; ++d)
@@ -709,8 +740,10 @@ fill_fe_face_values (const Mapping<dim,spacedim>
             {
               for (unsigned int k=0; k<n_q_points; ++k)
                 fe_data.untransformed_shape_grads[k+offset] = fe_data.shape_grads[i][k+offset];
-              mapping.transform(make_slice(fe_data.untransformed_shape_grads, offset, n_q_points),
-                                transformed_shape_grads, mapping_internal, mapping_piola_gradient);
+              mapping.transform (make_slice(fe_data.untransformed_shape_grads, offset, n_q_points),
+                                 mapping_piola_gradient,
+                                 mapping_internal,
+                                 transformed_shape_grads);
 
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<spacedim; ++d)
@@ -745,7 +778,9 @@ fill_fe_face_values (const Mapping<dim,spacedim>
                 fe_data.untransformed_shape_grads[k+offset] = fe_data.shape_grads[i][k+offset];
 
               mapping.transform (make_slice (fe_data.untransformed_shape_grads, offset, n_q_points),
-                                 transformed_shape_grads, mapping_internal, mapping_covariant_gradient);
+                                 mapping_covariant_gradient,
+                                 mapping_internal,
+                                 transformed_shape_grads);
 
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<spacedim; ++d)
@@ -829,10 +864,11 @@ fill_fe_subface_values (const Mapping<dim,spacedim>
     get_face_sign_change_nedelec (cell, this->dofs_per_face, fe_data.sign_change);
 
   if ( (flags & update_gradients) && mapping_type != mapping_none)
-    mapping.transform(mapping_data.jacobian_grads,
-                      VectorSlice< std::vector<Tensor<3,spacedim> > >
-                      (fe_data.transformed_jacobian_grads, offset, n_q_points),
-                      mapping_internal, mapping_covariant_gradient);
+    mapping.transform (mapping_data.jacobian_grads,
+                       mapping_covariant_gradient,
+                       mapping_internal,
+                       VectorSlice< std::vector<Tensor<3,spacedim> > >
+                       (fe_data.transformed_jacobian_grads, offset, n_q_points));
 
 
   for (unsigned int i=0; i<this->dofs_per_cell; ++i)
@@ -859,8 +895,10 @@ fill_fe_subface_values (const Mapping<dim,spacedim>
             {
               // Use auxiliary vector for
               // transformation
-              mapping.transform(make_slice(fe_data.shape_values[i], offset, n_q_points),
-                                transformed_shape_values, mapping_internal, mapping_type);
+              mapping.transform (make_slice(fe_data.shape_values[i], offset, n_q_points),
+                                 mapping_type,
+                                 mapping_internal,
+                                 transformed_shape_values);
 
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<dim; ++d)
@@ -871,8 +909,10 @@ fill_fe_subface_values (const Mapping<dim,spacedim>
             case mapping_raviart_thomas:
             case mapping_piola:
             {
-              mapping.transform(make_slice(fe_data.shape_values[i], offset, n_q_points),
-                                transformed_shape_values, mapping_internal, mapping_piola);
+              mapping.transform (make_slice(fe_data.shape_values[i], offset, n_q_points),
+                                 mapping_piola,
+                                 mapping_internal,
+                                 transformed_shape_values);
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<dim; ++d)
                   output_data.shape_values(first+d,k)
@@ -882,7 +922,9 @@ fill_fe_subface_values (const Mapping<dim,spacedim>
             case mapping_nedelec:
             {
               mapping.transform (make_slice (fe_data.shape_values[i], offset, n_q_points),
-                                 transformed_shape_values, mapping_internal, mapping_covariant);
+                                 mapping_covariant,
+                                 mapping_internal,
+                                 transformed_shape_values);
 
               for (unsigned int k = 0; k < n_q_points; ++k)
                 for (unsigned int d = 0; d < dim; ++d)
@@ -903,8 +945,10 @@ fill_fe_subface_values (const Mapping<dim,spacedim>
             {
             case mapping_none:
             {
-              mapping.transform(make_slice(fe_data.shape_grads[i], offset, n_q_points),
-                                transformed_shape_grads, mapping_internal, mapping_covariant);
+              mapping.transform (make_slice(fe_data.shape_grads[i], offset, n_q_points),
+                                 mapping_covariant,
+                                 mapping_internal,
+                                 transformed_shape_grads);
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<dim; ++d)
                   output_data.shape_gradients[first+d][k] = transformed_shape_grads[k][d];
@@ -913,8 +957,10 @@ fill_fe_subface_values (const Mapping<dim,spacedim>
 
             case mapping_covariant:
             {
-              mapping.transform(make_slice(fe_data.shape_grads[i], offset, n_q_points),
-                                transformed_shape_grads, mapping_internal, mapping_covariant_gradient);
+              mapping.transform (make_slice(fe_data.shape_grads[i], offset, n_q_points),
+                                 mapping_covariant_gradient,
+                                 mapping_internal,
+                                 transformed_shape_grads);
 
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<spacedim; ++d)
@@ -931,8 +977,10 @@ fill_fe_subface_values (const Mapping<dim,spacedim>
 
             case mapping_contravariant:
             {
-              mapping.transform(make_slice(fe_data.shape_grads[i], offset, n_q_points),
-                                transformed_shape_grads, mapping_internal, mapping_contravariant_gradient);
+              mapping.transform (make_slice(fe_data.shape_grads[i], offset, n_q_points),
+                                 mapping_contravariant_gradient,
+                                 mapping_internal,
+                                 transformed_shape_grads);
 
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<spacedim; ++d)
@@ -953,8 +1001,10 @@ fill_fe_subface_values (const Mapping<dim,spacedim>
               for (unsigned int k=0; k<n_q_points; ++k)
                 fe_data.untransformed_shape_grads[k+offset] = fe_data.shape_grads[i][k+offset];
 
-              mapping.transform(make_slice(fe_data.untransformed_shape_grads, offset, n_q_points),
-                                transformed_shape_grads, mapping_internal, mapping_piola_gradient);
+              mapping.transform (make_slice(fe_data.untransformed_shape_grads, offset, n_q_points),
+                                 mapping_piola_gradient,
+                                 mapping_internal,
+                                 transformed_shape_grads);
 
               for (unsigned int k=0; k<n_q_points; ++k)
                 for (unsigned int d=0; d<spacedim; ++d)
@@ -987,7 +1037,9 @@ fill_fe_subface_values (const Mapping<dim,spacedim>
                 fe_data.untransformed_shape_grads[k+offset] = fe_data.shape_grads[i][k+offset];
 
               mapping.transform (make_slice (fe_data.untransformed_shape_grads, offset, n_q_points),
-                                 transformed_shape_grads, mapping_internal, mapping_covariant_gradient);
+                                 mapping_covariant_gradient,
+                                 mapping_internal,
+                                 transformed_shape_grads);
 
 
               for (unsigned int k=0; k<n_q_points; ++k)
index 9d16fda1789e00bdf7bbd6b09fd7e447aa6a0fb8..904e10d5cff6f6d5cbc716910e5a98417311b9ce 100644 (file)
@@ -3236,7 +3236,7 @@ FEValuesBase<dim,spacedim>::transform (
 {
   VectorSlice<const std::vector<Tensor<1,dim> > > src(original);
   VectorSlice<std::vector<Tensor<1,spacedim> > > dst(transformed);
-  mapping->transform(src, dst, *mapping_data, type);
+  mapping->transform(src, type,*mapping_data, dst);
 }
 
 
index c2e707ab94a75f4c70796a770075be83ba9d418b..72fe571824eef8ab25949646a523d8967dcbdc65 100644 (file)
@@ -584,11 +584,11 @@ fill_fe_subface_values (const typename Triangulation<dim,spacedim>::cell_iterato
 
 template<int dim, int spacedim>
 void
-MappingCartesian<dim,spacedim>::transform (
-  const VectorSlice<const std::vector<Tensor<1,dim> > > input,
-  VectorSlice<std::vector<Tensor<1,spacedim> > > output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType mapping_type) const
+MappingCartesian<dim,spacedim>::
+transform (const VectorSlice<const std::vector<Tensor<1,dim> > >   input,
+           const MappingType                                       mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+           VectorSlice<std::vector<Tensor<1,spacedim> > >          output) const
 {
   AssertDimension (input.size(), output.size());
   Assert (dynamic_cast<const InternalData *>(&mapping_data) != 0,
@@ -639,11 +639,11 @@ MappingCartesian<dim,spacedim>::transform (
 
 template<int dim, int spacedim>
 void
-MappingCartesian<dim,spacedim>::transform (
-  const VectorSlice<const std::vector<DerivativeForm<1, dim,spacedim> > > input,
-  VectorSlice<std::vector<Tensor<2,spacedim> > > output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType mapping_type) const
+MappingCartesian<dim,spacedim>::
+transform (const VectorSlice<const std::vector<DerivativeForm<1, dim,spacedim> > > input,
+           const MappingType                                                       mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase                 &mapping_data,
+           VectorSlice<std::vector<Tensor<2,spacedim> > >                          output) const
 {
   AssertDimension (input.size(), output.size());
   Assert (dynamic_cast<const InternalData *>(&mapping_data) != 0,
@@ -740,11 +740,11 @@ MappingCartesian<dim,spacedim>::transform (
 
 template<int dim, int spacedim>
 void
-MappingCartesian<dim,spacedim>::transform (
-  const VectorSlice<const std::vector<Tensor<2, dim> > >    input,
-  VectorSlice<std::vector<Tensor<2, spacedim> > > output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType mapping_type) const
+MappingCartesian<dim,spacedim>::
+transform (const VectorSlice<const std::vector<Tensor<2, dim> > >  input,
+           const MappingType                                       mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+           VectorSlice<std::vector<Tensor<2, spacedim> > >         output) const
 {
 
   AssertDimension (input.size(), output.size());
@@ -841,11 +841,11 @@ MappingCartesian<dim,spacedim>::transform (
 
 template<int dim, int spacedim>
 void
-MappingCartesian<dim,spacedim>::transform (
-  const VectorSlice<const std::vector< DerivativeForm<2, dim, spacedim> > > input,
-  VectorSlice<std::vector<Tensor<3,spacedim> > >             output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType mapping_type) const
+MappingCartesian<dim,spacedim>::
+transform (const VectorSlice<const std::vector< DerivativeForm<2, dim, spacedim> > > input,
+           const MappingType                                                         mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase                   &mapping_data,
+           VectorSlice<std::vector<Tensor<3,spacedim> > >                            output) const
 {
 
   AssertDimension (input.size(), output.size());
@@ -879,11 +879,11 @@ MappingCartesian<dim,spacedim>::transform (
 
 template<int dim, int spacedim>
 void
-MappingCartesian<dim,spacedim>::transform (
-  const VectorSlice<const std::vector< Tensor<3,dim> > > input,
-  VectorSlice<std::vector<Tensor<3,spacedim> > >             output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType mapping_type) const
+MappingCartesian<dim,spacedim>::
+transform (const VectorSlice<const std::vector< Tensor<3,dim> > >  input,
+           const MappingType                                       mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+           VectorSlice<std::vector<Tensor<3,spacedim> > >          output) const
 {
 
   AssertDimension (input.size(), output.size());
index e0795fb756df6cf9042067b7dbb832eece104272..12429b41547f65f1189dc3807a7eddd70baee95d 100644 (file)
@@ -1022,9 +1022,9 @@ namespace internal
                     ExcInternalError());
 
             mapping.transform (data.unit_tangentials[face_no+GeometryInfo<dim>::faces_per_cell*d],
-                               data.aux[d],
+                               mapping_contravariant,
                                data,
-                               mapping_contravariant);
+                               data.aux[d]);
           }
 
         // if dim==spacedim, we can use the unit tangentials to compute the
@@ -1437,9 +1437,9 @@ namespace
   template<int dim, int spacedim, int rank, class VECTOR, class DH>
   void
   transform_fields(const VectorSlice<const std::vector<Tensor<rank,dim> > > input,
-                   VectorSlice<std::vector<Tensor<rank,spacedim> > > output,
-                   const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-                   const MappingType mapping_type)
+                   const MappingType                                        mapping_type,
+                   const typename Mapping<dim,spacedim>::InternalDataBase  &mapping_data,
+                   VectorSlice<std::vector<Tensor<rank,spacedim> > >        output)
   {
     AssertDimension (input.size(), output.size());
     Assert ((dynamic_cast<const typename MappingFEField<dim,spacedim,VECTOR,DH>::InternalData *>(&mapping_data) != 0),
@@ -1499,9 +1499,9 @@ namespace
   template<int dim, int spacedim, int rank, class VECTOR, class DH>
   void
   transform_differential_forms(const VectorSlice<const std::vector<DerivativeForm<rank, dim,spacedim> > >    input,
-                               VectorSlice<std::vector<Tensor<rank+1, spacedim> > > output,
-                               const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-                               const MappingType mapping_type)
+                               const MappingType                                                             mapping_type,
+                               const typename Mapping<dim,spacedim>::InternalDataBase                       &mapping_data,
+                               VectorSlice<std::vector<Tensor<rank+1, spacedim> > >                          output)
   {
 
     AssertDimension (input.size(), output.size());
@@ -1533,40 +1533,41 @@ namespace
 
 template<int dim, int spacedim, class VECTOR, class DH>
 void
-MappingFEField<dim,spacedim,VECTOR,DH>::transform (
-  const VectorSlice<const std::vector<Tensor<1,dim> > > input,
-  VectorSlice<std::vector<Tensor<1,spacedim> > > output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType mapping_type) const
+MappingFEField<dim,spacedim,VECTOR,DH>::
+transform (const VectorSlice<const std::vector<Tensor<1,dim> > >   input,
+           const MappingType                                       mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+           VectorSlice<std::vector<Tensor<1,spacedim> > >          output) const
 {
   AssertDimension (input.size(), output.size());
 
-  transform_fields<dim,spacedim,1,VECTOR,DH>(input, output, mapping_data, mapping_type);
+  transform_fields<dim,spacedim,1,VECTOR,DH>(input, mapping_type, mapping_data, output);
 }
 
 
 
 template<int dim, int spacedim, class VECTOR, class DH>
 void
-MappingFEField<dim,spacedim,VECTOR,DH>::transform (
-  const VectorSlice<const std::vector<DerivativeForm<1, dim ,spacedim>  > >  input,
-  VectorSlice<std::vector<Tensor<2,spacedim> > > output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType mapping_type) const
+MappingFEField<dim,spacedim,VECTOR,DH>::
+transform (const VectorSlice<const std::vector<DerivativeForm<1, dim ,spacedim>  > >  input,
+           const MappingType                                                          mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase                    &mapping_data,
+           VectorSlice<std::vector<Tensor<2,spacedim> > >                             output) const
 {
   AssertDimension (input.size(), output.size());
 
-  transform_differential_forms<dim,spacedim,1,VECTOR,DH>(input, output, mapping_data, mapping_type);
-
+  transform_differential_forms<dim,spacedim,1,VECTOR,DH>(input, mapping_type, mapping_data, output);
 }
 
 
+
 template<int dim, int spacedim, class VECTOR, class DH>
-void MappingFEField<dim,spacedim,VECTOR,DH>::transform
-(const VectorSlice<const std::vector<Tensor<2, dim> > >     input,
- VectorSlice<std::vector<Tensor<2,spacedim> > >             output,
- const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
- const MappingType) const
+void
+MappingFEField<dim,spacedim,VECTOR,DH>::
+transform (const VectorSlice<const std::vector<Tensor<2, dim> > >  input,
+           const MappingType,
+           const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+           VectorSlice<std::vector<Tensor<2,spacedim> > >          output) const
 {
   (void)input;
   (void)output;
@@ -1579,11 +1580,12 @@ void MappingFEField<dim,spacedim,VECTOR,DH>::transform
 
 
 template<int dim, int spacedim, class VECTOR, class DH>
-void MappingFEField<dim,spacedim,VECTOR,DH>::transform (
-  const VectorSlice<const std::vector< DerivativeForm<2, dim, spacedim> > > input,
-  VectorSlice<std::vector<Tensor<3,spacedim> > >             output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType mapping_type) const
+void
+MappingFEField<dim,spacedim,VECTOR,DH>::
+transform (const VectorSlice<const std::vector< DerivativeForm<2, dim, spacedim> > > input,
+           const MappingType                                                         mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase                   &mapping_data,
+           VectorSlice<std::vector<Tensor<3,spacedim> > >                            output) const
 {
 
   AssertDimension (input.size(), output.size());
@@ -1618,18 +1620,22 @@ void MappingFEField<dim,spacedim,VECTOR,DH>::transform (
               }
       return;
     }
+
     default:
       Assert(false, ExcNotImplemented());
     }
 
 }
 
+
+
 template<int dim, int spacedim, class VECTOR, class DH>
-void MappingFEField<dim,spacedim,VECTOR,DH>::transform (
-  const VectorSlice<const std::vector< Tensor<3,dim> > > input,
-  VectorSlice<std::vector<Tensor<3,spacedim> > >             output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType /*mapping_type*/) const
+void
+MappingFEField<dim,spacedim,VECTOR,DH>::
+transform (const VectorSlice<const std::vector< Tensor<3,dim> > >  input,
+           const MappingType                                     /*mapping_type*/,
+           const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+           VectorSlice<std::vector<Tensor<3,spacedim> > >          output) const
 {
 
   (void)input;
@@ -1642,6 +1648,7 @@ void MappingFEField<dim,spacedim,VECTOR,DH>::transform (
 }
 
 
+
 template<int dim, int spacedim, class VECTOR, class DH>
 Point<spacedim>
 MappingFEField<dim,spacedim,VECTOR,DH>::
index 4fddd102e18f58a042cd5e9ce42c2635e1a4ddec..5c69092a7593d26bac11c518ba4e2850529aa6da 100644 (file)
@@ -995,11 +995,11 @@ add_quad_support_points(const typename Triangulation<dim,spacedim>::cell_iterato
 
 template<int dim, int spacedim>
 void
-MappingQ<dim,spacedim>::transform (
-  const VectorSlice<const std::vector<Tensor<1,dim> > > input,
-  VectorSlice<std::vector<Tensor<1,spacedim> > > output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType mapping_type) const
+MappingQ<dim,spacedim>::
+transform (const VectorSlice<const std::vector<Tensor<1,dim> > >   input,
+           const MappingType                                       mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
+           VectorSlice<std::vector<Tensor<1,spacedim> > >          output) const
 {
   AssertDimension (input.size(), output.size());
   // The data object may be just a MappingQ1::InternalData, so we have to test
@@ -1020,18 +1020,18 @@ MappingQ<dim,spacedim>::transform (
     }
   // Now, q1_data should have the right tensors in it and we call the base
   // classes transform function
-  MappingQ1<dim,spacedim>::transform(input, output, *q1_data, mapping_type);
+  MappingQ1<dim,spacedim>::transform(input, mapping_type, *q1_data, output);
 }
 
 
 
 template<int dim, int spacedim>
 void
-MappingQ<dim,spacedim>::transform (
-  const VectorSlice<const std::vector<DerivativeForm<1, dim ,spacedim>  > >  input,
-  VectorSlice<std::vector<Tensor<2,spacedim> > > output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType mapping_type) const
+MappingQ<dim,spacedim>::
+transform (const VectorSlice<const std::vector<DerivativeForm<1, dim ,spacedim>  > >  input,
+           const MappingType                                                          mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase                    &mapping_data,
+           VectorSlice<std::vector<Tensor<2,spacedim> > >                             output) const
 {
   AssertDimension (input.size(), output.size());
   // The data object may be just a MappingQ1::InternalData, so we have to test
@@ -1052,16 +1052,16 @@ MappingQ<dim,spacedim>::transform (
     }
   // Now, q1_data should have the right tensors in it and we call the base
   // classes transform function
-  MappingQ1<dim,spacedim>::transform(input, output, *q1_data, mapping_type);
+  MappingQ1<dim,spacedim>::transform(input, mapping_type, *q1_data, output);
 }
 
 
 template<int dim, int spacedim>
-void MappingQ<dim,spacedim>::transform
-(const VectorSlice<const std::vector<Tensor<2, dim> > >     input,
VectorSlice<std::vector<Tensor<2,spacedim> > >             output,
- const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
const MappingType mapping_type) const
+void MappingQ<dim,spacedim>::
+transform (const VectorSlice<const std::vector<Tensor<2, dim> > >  input,
          const MappingType                                       mapping_type,
          const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
          VectorSlice<std::vector<Tensor<2,spacedim> > >          output) const
 {
   AssertDimension (input.size(), output.size());
   // The data object may be just a MappingQ1::InternalData, so we have to test
@@ -1082,7 +1082,7 @@ void MappingQ<dim,spacedim>::transform
     }
   // Now, q1_data should have the right tensors in it and we call the base
   // classes transform function
-  MappingQ1<dim,spacedim>::transform(input, output, *q1_data, mapping_type);
+  MappingQ1<dim,spacedim>::transform(input, mapping_type, *q1_data, output);
 }
 
 
index 8104bb1aa55b4c612fb3c4fb274b275e2b840c71..f5872e3545463180d9f2c4517c1f82a0bc2ef35d 100644 (file)
@@ -1507,9 +1507,9 @@ namespace internal
                       ExcInternalError());
 
               mapping.transform (data.unit_tangentials[face_no+GeometryInfo<dim>::faces_per_cell*d],
-                                 data.aux[d],
+                                 mapping_contravariant,
                                  data,
-                                 mapping_contravariant);
+                                 data.aux[d]);
             }
 
           // if dim==spacedim, we can use the unit tangentials to compute the
@@ -1758,9 +1758,9 @@ namespace
   template <int dim, int spacedim, int rank>
   void
   transform_fields(const VectorSlice<const std::vector<Tensor<rank,dim> > > input,
-                   VectorSlice<std::vector<Tensor<rank,spacedim> > > output,
-                   const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-                   const MappingType mapping_type)
+                   const MappingType                                        mapping_type,
+                   const typename Mapping<dim,spacedim>::InternalDataBase  &mapping_data,
+                   VectorSlice<std::vector<Tensor<rank,spacedim> > >        output)
   {
     AssertDimension (input.size(), output.size());
     Assert ((dynamic_cast<const typename MappingQ1<dim,spacedim>::InternalData *>(&mapping_data) != 0),
@@ -1821,9 +1821,9 @@ namespace
   template <int dim, int spacedim, int rank>
   void
   transform_gradients(const VectorSlice<const std::vector<Tensor<rank,dim> > > input,
-                      VectorSlice<std::vector<Tensor<rank,spacedim> > > output,
-                      const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-                      const MappingType mapping_type)
+                      const MappingType                                        mapping_type,
+                      const typename Mapping<dim,spacedim>::InternalDataBase  &mapping_data,
+                      VectorSlice<std::vector<Tensor<rank,spacedim> > >        output)
   {
     AssertDimension (input.size(), output.size());
     Assert ((dynamic_cast<const typename MappingQ1<dim,spacedim>::InternalData *>(&mapping_data) != 0),
@@ -1901,10 +1901,10 @@ namespace
 
   template <int dim, int spacedim>
   void
-  transform_hessians(const VectorSlice<const std::vector<Tensor<3,dim> > > input,
-                     VectorSlice<std::vector<Tensor<3,spacedim> > > output,
+  transform_hessians(const VectorSlice<const std::vector<Tensor<3,dim> > >   input,
+                     const MappingType                                       mapping_type,
                      const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-                     const MappingType mapping_type)
+                     VectorSlice<std::vector<Tensor<3,spacedim> > >          output)
   {
     AssertDimension (input.size(), output.size());
     Assert ((dynamic_cast<const typename MappingQ1<dim,spacedim>::InternalData *>(&mapping_data) != 0),
@@ -2019,12 +2019,12 @@ namespace
 
 
 
-  template <int dim, int spacedim, int rank>
+  template<int dim, int spacedim, int rank>
   void
-  transform_differential_forms(const VectorSlice<const std::vector<DerivativeForm<rank, dim,spacedim> > >    input,
-                               VectorSlice<std::vector<Tensor<rank+1, spacedim> > > output,
-                               const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-                               const MappingType mapping_type)
+  transform_differential_forms(const VectorSlice<const std::vector<DerivativeForm<rank, dim,spacedim> > > input,
+                               const MappingType                                                          mapping_type,
+                               const typename Mapping<dim,spacedim>::InternalDataBase                    &mapping_data,
+                               VectorSlice<std::vector<Tensor<rank+1, spacedim> > >                       output)
   {
     AssertDimension (input.size(), output.size());
     Assert ((dynamic_cast<const typename MappingQ1<dim,spacedim>::InternalData *>(&mapping_data) != 0),
@@ -2054,48 +2054,48 @@ namespace
 
 template<int dim, int spacedim>
 void
-MappingQ1<dim,spacedim>::transform (
-  const VectorSlice<const std::vector<Tensor<1, dim> > >  input,
-  VectorSlice<std::vector<Tensor<1, spacedim> > >         output,
-  const typename Mapping<dim,spacedim>::InternalDataBase  &mapping_data,
-  const MappingType                                       mapping_type) const
+MappingQ1<dim,spacedim>::
+transform (const VectorSlice<const std::vector<Tensor<1, dim> > >   input,
+           const MappingType                                        mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase  &mapping_data,
+           VectorSlice<std::vector<Tensor<1, spacedim> > >          output) const
 {
-  transform_fields(input, output, mapping_data, mapping_type);
+  transform_fields(input, mapping_type, mapping_data, output);
 }
 
 
 
 template<int dim, int spacedim>
 void
-MappingQ1<dim,spacedim>::transform (
-  const VectorSlice<const std::vector<DerivativeForm<1, dim,spacedim> > > input,
-  VectorSlice<std::vector<Tensor<2, spacedim> > > output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType mapping_type) const
+MappingQ1<dim,spacedim>::
+transform (const VectorSlice<const std::vector<DerivativeForm<1, dim,spacedim> > > input,
+           const MappingType                                                       mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase                 &mapping_data,
+           VectorSlice<std::vector<Tensor<2, spacedim> > >                         output) const
 {
-  transform_differential_forms(input, output, mapping_data, mapping_type);
+  transform_differential_forms(input, mapping_type, mapping_data, output);
 }
 
 
 
 template<int dim, int spacedim>
 void
-MappingQ1<dim,spacedim>::transform (
-  const VectorSlice<const std::vector<Tensor<2, dim> > >    input,
-  VectorSlice<std::vector<Tensor<2, spacedim> > >     output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType mapping_type) const
+MappingQ1<dim,spacedim>::
+transform (const VectorSlice<const std::vector<Tensor<2, dim> > >   input,
+           const MappingType                                        mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase  &mapping_data,
+           VectorSlice<std::vector<Tensor<2, spacedim> > >          output) const
 {
   switch (mapping_type)
     {
     case mapping_contravariant:
-      transform_fields(input, output, mapping_data, mapping_type);
+      transform_fields(input, mapping_type, mapping_data, output);
       return;
 
     case mapping_piola_gradient:
     case mapping_contravariant_gradient:
     case mapping_covariant_gradient:
-      transform_gradients(input, output, mapping_data, mapping_type);
+      transform_gradients(input, mapping_type, mapping_data, output);
       return;
     default:
       Assert(false, ExcNotImplemented());
@@ -2106,11 +2106,11 @@ MappingQ1<dim,spacedim>::transform (
 
 template<int dim, int spacedim>
 void
-MappingQ1<dim,spacedim>::transform (
-  const VectorSlice<const std::vector< DerivativeForm<2, dim, spacedim> > > input,
-  VectorSlice<std::vector<Tensor<3,spacedim> > >             output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType mapping_type) const
+MappingQ1<dim,spacedim>::
+transform (const VectorSlice<const std::vector< DerivativeForm<2, dim, spacedim> > > input,
+           const MappingType                                                         mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase                   &mapping_data,
+           VectorSlice<std::vector<Tensor<3,spacedim> > >                            output) const
 {
 
   AssertDimension (input.size(), output.size());
@@ -2155,11 +2155,11 @@ MappingQ1<dim,spacedim>::transform (
 
 template<int dim, int spacedim>
 void
-MappingQ1<dim,spacedim>::transform (
-  const VectorSlice<const std::vector< Tensor<3,dim> > > input,
-  VectorSlice<std::vector<Tensor<3,spacedim> > >             output,
-  const typename Mapping<dim,spacedim>::InternalDataBase &mapping_data,
-  const MappingType mapping_type) const
+MappingQ1<dim,spacedim>::
+transform (const VectorSlice<const std::vector< Tensor<3,dim> > >   input,
+           const MappingType                                        mapping_type,
+           const typename Mapping<dim,spacedim>::InternalDataBase  &mapping_data,
+           VectorSlice<std::vector<Tensor<3,spacedim> > >           output) const
 {
 
   switch (mapping_type)
@@ -2167,7 +2167,7 @@ MappingQ1<dim,spacedim>::transform (
     case mapping_piola_hessian:
     case mapping_contravariant_hessian:
     case mapping_covariant_hessian:
-      transform_hessians(input, output, mapping_data, mapping_type);
+      transform_hessians(input, mapping_type, mapping_data, output);
       return;
     default:
       Assert(false, ExcNotImplemented());

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.