]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Removed unused declaration. Added assertions on flags.
authorLuca Heltai <luca.heltai@sissa.it>
Mon, 28 Mar 2016 11:32:47 +0000 (13:32 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Wed, 6 Apr 2016 11:00:14 +0000 (13:00 +0200)
include/deal.II/fe/mapping_manifold.h
source/fe/mapping_manifold.cc

index 93fb1ba8a346bf3ee4b935ff9e1e76efffac859c..9b81a829517570ef3cc6eb809c7f3dcc9257d9fe 100644 (file)
@@ -364,17 +364,6 @@ public:
   /**
    * @}
    */
-
-protected:
-
-  /**
-   * Transforms the point @p p on the real cell to the corresponding point on
-   * the unit cell @p cell by a Newton iteration.
-   */
-  // Point<dim>
-  // transform_real_to_unit_cell_internal (const typename Triangulation<dim,spacedim>::cell_iterator &cell,
-  //                                       const Point<spacedim> &p,
-  //                                       const Point<dim> &initial_p_unit) const;
 };
 
 
index 590c2ac4a4b0ceb1d121713589672a54b2de0121..eedf1fa43ef811c4e5985e74ce7114b656818382 100644 (file)
@@ -160,8 +160,7 @@ initialize_face (const UpdateFlags      update_flags,
 
 template<int dim, int spacedim>
 MappingManifold<dim,spacedim>::MappingManifold ()
-{
-}
+{}
 
 
 
@@ -272,6 +271,15 @@ MappingManifold<dim,spacedim>::requires_update_flags (const UpdateFlags in) cons
         out |= update_JxW_values;
     }
 
+  // Now throw an exception if we stumble upon something that was not
+  // implemented yet
+  Assert(!(out & (
+             update_jacobian_grads |
+             update_jacobian_pushed_forward_grads |
+             update_jacobian_pushed_forward_2nd_derivatives |
+             update_jacobian_pushed_forward_3rd_derivatives
+           )), ExcNotImplemented());
+
   return out;
 }
 

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.