]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix assertion in transform_real_to_unit_cell for 1d and 3d.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Jun 2002 11:23:56 +0000 (11:23 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Jun 2002 11:23:56 +0000 (11:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@6041 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/mapping_q1.cc

index 4fa0fbf3ec69a08c4755ea84ad6e79bab195f4c0..fce9cbfb5c557f7d1669315025f1a4fea4d8557d 100644 (file)
@@ -888,7 +888,8 @@ Point<dim> MappingQ1<dim>::transform_real_to_unit_cell (
   Assert(mdata!=0, ExcInternalError());
 
   MappingQ1<dim>::compute_mapping_support_points(cell, mdata->mapping_support_points);
-  Assert(mdata->mapping_support_points.size()==4, ExcInternalError());
+  Assert(mdata->mapping_support_points.size()==GeometryInfo<dim>::vertices_per_cell,
+        ExcInternalError());
 
                                   // perform the newton iteration.
   transform_real_to_unit_cell_internal(cell, p, *mdata, p_unit);

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.