]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Replace assert(c) by Assert(c,...)
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 21 Feb 2003 23:09:42 +0000 (23:09 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 21 Feb 2003 23:09:42 +0000 (23:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@7223 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_reordering.cc

index 64713dfd69baf709cfbde220b68cffb21ad79fa3..ae25646a906054ebcb8a657b683f670801219f5c 100644 (file)
@@ -1597,16 +1597,16 @@ namespace internal
                                           // process of rotating things
          CellData<2> q = mquads[qn].original_cell_data;
          
-                                          //Are the sides oriented? 
-         assert(is_fully_oriented_quad(qn));
+                                          // Are the sides oriented? 
+         Assert(is_fully_oriented_quad(qn), ExcInternalError());
          bool s[4]; //whether side 1 ,2, 3, 4 are in the default orientation
          for(int sn=0;sn<4;sn++)
            {
              s[sn]=is_side_default_oriented(qn,sn);
            }
                                           // Are they oriented in the "deal way"?
-         assert(s[0]==s[2]);
-         assert(s[1]==s[3]);
+         Assert(s[0]==s[2], ExcInternalError());
+         Assert(s[1]==s[3], ExcInternalError());
                                           // How much we rotate them by.
          int rotn = 2*(s[0]?1:0)+ ((s[0]^s[1])?1: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.