]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make output of distorted mapped cells a bit more extensive.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Apr 2013 16:20:56 +0000 (16:20 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Apr 2013 16:20:56 +0000 (16:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@29310 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/fe/mapping.h
deal.II/source/fe/mapping_q1.cc
tests/bits/distorted_mapped_cells_01/cmp/generic
tests/bits/distorted_mapped_cells_02/cmp/generic

index bbae280d1d6e58e9785a5412b72a51af5315e977..74906f3107f4fed836119b33e204404ec340c05a 100644 (file)
@@ -725,12 +725,13 @@ public:
    *
    * @ingroup Exceptions
    */
-  DeclException2 (ExcDistortedMappedCell,
-                  Point<spacedim>, int,
+  DeclException3 (ExcDistortedMappedCell,
+                  Point<spacedim>, double, int,
                   << "The image of the mapping applied to cell with center ["
                   << arg1 << "] is distorted. The cell geometry or the "
-                  << "mapping are invalid and yield non-positive volume "
-                  << "fractions in quadrature point " << arg2 << ".");
+                  << "mapping are invalid, giving a non-positive volume "
+                  << "fraction of " << arg2 << " in quadrature point "
+                  << arg3 << ".");
 
 private:
 
index cde648c0752546a317cb89b361167113daf3df27..e141e0a3a673923b21320bc9c46ce08ce636c8cc 100644 (file)
@@ -781,7 +781,7 @@ MappingQ1<dim,spacedim>::fill_fe_values (
                 // (dimension-independent) criterion
                 Assert (det > 1e-12*Utilities::fixed_power<dim>(cell->diameter()/
                                                                 std::sqrt(double(dim))),
-                        (typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), point)));
+                        (typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), det, point)));
 
                 JxW_values[point] = weights[point] * det;
               }
index f3fc57530357076c85df68cc3fb5c656f26f5311..9314a3de34a661654998468710ab6bd3332d824e 100644 (file)
@@ -1,3 +1,3 @@
 
-DEAL::(typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), point))
+DEAL::(typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), det, point))
 DEAL::Integral = 0
index f3fc57530357076c85df68cc3fb5c656f26f5311..9314a3de34a661654998468710ab6bd3332d824e 100644 (file)
@@ -1,3 +1,3 @@
 
-DEAL::(typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), point))
+DEAL::(typename Mapping<dim,spacedim>::ExcDistortedMappedCell(cell->center(), det, point))
 DEAL::Integral = 0

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.