← Back to team overview

dolfin team mailing list archive

[noreply@xxxxxxxxxxxxx: [Branch ~dolfin-core/dolfin/main] Rev 5339: Fix some typos in assertions.]

 

Why were those not detected by my compiler? Isn't DDEBUG set by cmake.local?

--
Anders
--- Begin Message ---
------------------------------------------------------------
revno: 5339
committer: Garth N. Wells <gnw20@xxxxxxxxx>
branch nick: dolfin-all
timestamp: Mon 2010-11-29 16:22:06 +0000
message:
  Fix some typos in assertions.
modified:
  dolfin/mesh/MeshRenumbering.cpp


--
lp:dolfin
https://code.launchpad.net/~dolfin-core/dolfin/main

Your team DOLFIN Core Team is subscribed to branch lp:dolfin.
To unsubscribe from this branch go to https://code.launchpad.net/~dolfin-core/dolfin/main/+edit-subscription
=== modified file 'dolfin/mesh/MeshRenumbering.cpp'
--- dolfin/mesh/MeshRenumbering.cpp	2010-11-29 14:24:52 +0000
+++ dolfin/mesh/MeshRenumbering.cpp	2010-11-29 16:22:06 +0000
@@ -64,7 +64,7 @@
 
   // Iterate over colors
   const std::vector<uint>* num_colored_cells = mesh.data().array("num colored cells");
-  assert(num_collored_cells);
+  assert(num_colored_cells);
   const uint num_colors = num_colored_cells->size();
   assert(num_colors > 0);
   uint connections_offset = 0;
@@ -125,7 +125,7 @@
     std::vector<uint>* colored_cells = mesh.data().array("colored cells", color);
 
     // Update cell color data
-    assert(colored_cells->size() == num_colored_cells[color]);
+    assert(colored_cells->size() == (*num_colored_cells)[color]);
     for (uint i = 0; i < (*num_colored_cells)[color]; i++)
     {
       (*colored_cells)[i] = current_cell;


--- End Message ---

Follow ups