[MOAB-dev] r4283 - in MOAB/trunk: src src/io tools

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Thu Nov 18 16:46:03 CST 2010


Author: kraftche
Date: 2010-11-18 16:46:03 -0600 (Thu, 18 Nov 2010)
New Revision: 4283

Modified:
   MOAB/trunk/src/GeomTopoTool.cpp
   MOAB/trunk/src/WriteUtil.cpp
   MOAB/trunk/src/io/ReadSms.cpp
   MOAB/trunk/tools/mbmem.cpp
Log:
fix warnings

Modified: MOAB/trunk/src/GeomTopoTool.cpp
===================================================================
--- MOAB/trunk/src/GeomTopoTool.cpp	2010-11-18 22:45:32 UTC (rev 4282)
+++ MOAB/trunk/src/GeomTopoTool.cpp	2010-11-18 22:46:03 UTC (rev 4283)
@@ -36,9 +36,15 @@
 const char GEOM_SENSE_N_ENTS_TAG_NAME[] = "GEOM_SENSE_N_ENTS";
 const char GEOM_SENSE_N_SENSES_TAG_NAME[] = "GEOM_SENSE_N_SENSES";
 
-GeomTopoTool::GeomTopoTool(Interface *impl, bool find_geoments) :
-   mdbImpl(impl), sense2Tag(0), senseNEntsTag(0), senseNSensesTag(0), obbTree(
-         impl), oneVolRootSet(NULL) , contiguous(true) {
+GeomTopoTool::GeomTopoTool(Interface *impl, bool find_geoments)
+ : mdbImpl(impl), 
+   sense2Tag(0), 
+   senseNEntsTag(0), 
+   senseNSensesTag(0), 
+   obbTree(impl), 
+   contiguous(true),
+   oneVolRootSet(NULL)
+{
    ErrorCode result = mdbImpl->tag_create(GEOM_DIMENSION_TAG_NAME, 4,
          MB_TAG_SPARSE, geomTag, NULL);
    if (MB_SUCCESS != result && MB_ALREADY_ALLOCATED != result) {

Modified: MOAB/trunk/src/WriteUtil.cpp
===================================================================
--- MOAB/trunk/src/WriteUtil.cpp	2010-11-18 22:45:32 UTC (rev 4282)
+++ MOAB/trunk/src/WriteUtil.cpp	2010-11-18 22:46:03 UTC (rev 4283)
@@ -495,7 +495,7 @@
     if (conn_array == NULL) { // if it is structured mesh
       ErrorCode rval;
       int temp_buff_size = conn_size* sizeof(EntityHandle);
-      for (int i = 0; i < count; i++) { // copy connectivity element by element
+      for (unsigned i = 0; i < count; i++) { // copy connectivity element by element
 	std::vector<EntityHandle> connect;
 	rval = static_cast<ElementSequence*>(*seq_iter)->get_connectivity(*iter,
 									  connect);

Modified: MOAB/trunk/src/io/ReadSms.cpp
===================================================================
--- MOAB/trunk/src/io/ReadSms.cpp	2010-11-18 22:45:32 UTC (rev 4282)
+++ MOAB/trunk/src/io/ReadSms.cpp	2010-11-18 22:46:03 UTC (rev 4283)
@@ -480,7 +480,7 @@
 
 ErrorCode ReadSms::read_parallel_info(FILE *file_ptr) 
 {
-  ErrorCode result;
+//  ErrorCode result;
 
     // read partition info
   int nparts, part_id, num_ifaces, num_corner_ents;


More information about the moab-dev mailing list