[MOAB-dev] r5644 - MOAB/trunk/src/io

tautges at mcs.anl.gov tautges at mcs.anl.gov
Mon Jul 30 11:14:34 CDT 2012


Author: tautges
Date: 2012-07-30 11:14:34 -0500 (Mon, 30 Jul 2012)
New Revision: 5644

Modified:
   MOAB/trunk/src/io/WriteDamsel.cpp
   MOAB/trunk/src/io/WriteDamsel.hpp
Log:
Checking in to allow some debugging elsewhere.



Modified: MOAB/trunk/src/io/WriteDamsel.cpp
===================================================================
--- MOAB/trunk/src/io/WriteDamsel.cpp	2012-07-30 15:59:40 UTC (rev 5643)
+++ MOAB/trunk/src/io/WriteDamsel.cpp	2012-07-30 16:14:34 UTC (rev 5644)
@@ -169,8 +169,8 @@
   }
 
     // write sparse tags
-  rval = map_sparse_tags();
-  CHK_MB_ERR(rval, "Failed to write sparse tags.");
+//  rval = map_sparse_tags();
+//  CHK_MB_ERR(rval, "Failed to write sparse tags.");
 
     // now tell Damsel to actually write it
   MPI_Comm comm = MPI_COMM_WORLD;
@@ -337,39 +337,25 @@
 
       // map the data to damsel
     err = DMSLmodel_map_tag(xcoords, vertex_cont, (damsel_handle_ptr)&xcoordsTagPair.first);
-    if (DMSL_OK.id != err.id) {
-      err = DMSLtag_assign(xcoordsTagPair.second, vertex_cont, xcoords);
-    }
     CHK_DMSL_ERR_2(err, "Failed to assign vertex coordinates tag for vertices starting with handle %lu.", 
                  rsi.get_start_handle());
   }
   else {
       // map the data to damsel
     err = DMSLmodel_map_tag(xcoords, vertex_cont, (damsel_handle_ptr)&xcoordsTagPair.first);
-    if (DMSL_OK.id == err.id) {
-      err = DMSLmodel_map_tag(ycoords, vertex_cont, (damsel_handle_ptr)&ycoordsTagPair.first);
-      CHK_DMSL_ERR_2(err, "Failed to assign vertex coordinates tag for vertices starting with handle %lu.", 
-                     rsi.get_start_handle());
-      err = DMSLmodel_map_tag(zcoords, vertex_cont, (damsel_handle_ptr)&zcoordsTagPair.first);
-      CHK_DMSL_ERR_2(err, "Failed to assign vertex coordinates tag for vertices starting with handle %lu.", 
-                     rsi.get_start_handle());
-    }
-    else {
-      err = DMSLtag_assign(xcoordsTagPair.second, vertex_cont, xcoords);
-      CHK_DMSL_ERR_2(err, "Failed to assign vertex coordinates tag for vertices starting with handle %lu.", 
-                     rsi.get_start_handle());
-      err = DMSLtag_assign(ycoordsTagPair.second, vertex_cont, ycoords);
-      CHK_DMSL_ERR_2(err, "Failed to assign vertex coordinates tag for vertices starting with handle %lu.", 
-                     rsi.get_start_handle());
-      err = DMSLtag_assign(zcoordsTagPair.second, vertex_cont, zcoords);
-      CHK_DMSL_ERR_2(err, "Failed to assign vertex coordinates tag for vertices starting with handle %lu.", 
-                     rsi.get_start_handle());
-    }
+    CHK_DMSL_ERR_2(err, "Failed to assign vertex x coordinates tag for vertices starting with handle %lu.", 
+                   rsi.get_start_handle());
+    err = DMSLmodel_map_tag(ycoords, vertex_cont, (damsel_handle_ptr)&ycoordsTagPair.first);
+    CHK_DMSL_ERR_2(err, "Failed to assign vertex y coordinates tag for vertices starting with handle %lu.", 


More information about the moab-dev mailing list