]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add another safety check.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 Aug 2001 13:36:48 +0000 (13:36 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 Aug 2001 13:36:48 +0000 (13:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@4909 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/error_estimator.cc

index c9efeaa25d9c325c1cacff5ab1f6747a6a7b4734..7c6460dbf55333606576a0fefcc92e72ffdc36aa 100644 (file)
@@ -921,6 +921,13 @@ integrate_over_regular_face (Data                       &data,
        for (unsigned int p=0; p<n_q_points; ++p)
          face_integral[n] += ::sqr(data.phi[n][p][component]) *
                              data.JxW_values[p];
+
+                                  // double check that the element
+                                  // already exists and that it was
+                                  // not already written to
+  Assert (data.face_integrals.find (face) != data.face_integrals.end(),
+         ExcInternalError());
+  Assert (data.face_integrals[face][0] < 0, ExcInternalError());
   
   data.face_integrals[face] = face_integral;
 };

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.