[cig-commits] r7682 - short/3D/PyLith/trunk/libsrc/meshio

brad at geodynamics.org brad at geodynamics.org
Mon Jul 16 17:45:43 PDT 2007


Author: brad
Date: 2007-07-16 17:45:42 -0700 (Mon, 16 Jul 2007)
New Revision: 7682

Modified:
   short/3D/PyLith/trunk/libsrc/meshio/MeshIO.cc
Log:
Added some trivial documentation of loop braces.

Modified: short/3D/PyLith/trunk/libsrc/meshio/MeshIO.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/MeshIO.cc	2007-07-17 00:44:56 UTC (rev 7681)
+++ short/3D/PyLith/trunk/libsrc/meshio/MeshIO.cc	2007-07-17 00:45:42 UTC (rev 7682)
@@ -205,7 +205,6 @@
 
   const ALE::Obj<Mesh::label_type>& labelMaterials = 
     (*_mesh)->createLabel("material-id");
-
   if (!(*_mesh)->commRank()) {
     const ALE::Obj<Mesh::label_sequence>& cells = (*_mesh)->heightStratum(0);
     assert(!cells.isNull());
@@ -218,13 +217,13 @@
           << cells->size() << ").";
       throw std::runtime_error(msg.str());
     } // if
-    const Mesh::label_sequence::iterator end = cells->end();
     int i = 0;
+    const Mesh::label_sequence::iterator end = cells->end();
     for(Mesh::label_sequence::iterator e_iter = cells->begin();
         e_iter != end;
         ++e_iter)
       (*_mesh)->setValue(labelMaterials, *e_iter, materialIds[i++]);
-  }
+  } // if
 } // _setMaterials
 
 // ----------------------------------------------------------------------
@@ -317,8 +316,8 @@
       assert(!groupField.isNull());
       (*_mesh)->allocate(groupField);
       delete [] name;
-    }
-  }
+    } // for
+  } // if/else
 } // _distributeGroups
 
 // ----------------------------------------------------------------------



More information about the cig-commits mailing list