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

tautges at mcs.anl.gov tautges at mcs.anl.gov
Tue Jul 31 09:27:37 CDT 2012


Author: tautges
Date: 2012-07-31 09:27:37 -0500 (Tue, 31 Jul 2012)
New Revision: 5646

Added:
   MOAB/trunk/src/io/DamselUtil.cpp
Modified:
   MOAB/trunk/src/io/DamselUtil.hpp
   MOAB/trunk/src/io/Makefile.am
   MOAB/trunk/src/io/WriteDamsel.cpp
   MOAB/trunk/src/io/WriteDamsel.hpp
Log:
Forgot to add DamselUtil.cpp; a few updates to damsel writer.


Added: MOAB/trunk/src/io/DamselUtil.cpp
===================================================================
--- MOAB/trunk/src/io/DamselUtil.cpp	                        (rev 0)
+++ MOAB/trunk/src/io/DamselUtil.cpp	2012-07-31 14:27:37 UTC (rev 5646)
@@ -0,0 +1,58 @@
+#include "DamselUtil.hpp"
+
+#include "damsel.h"
+
+namespace moab {
+
+damsel_entity_type DamselUtil::mtod_entity_type[] = {
+    DAMSEL_ENTITY_TYPE_VERTEX,      //  MBVERTEX
+    DAMSEL_ENTITY_TYPE_EDGE,  // MBEDGE
+    DAMSEL_ENTITY_TYPE_TRI, // MBTRI
+    DAMSEL_ENTITY_TYPE_QUAD, //   MBQUAD
+    DAMSEL_ENTITY_TYPE_POLYGON, //   MBPOLYGON
+    DAMSEL_ENTITY_TYPE_TET,//  MBTET
+    DAMSEL_ENTITY_TYPE_PYRAMID,  //   MBPYRAMID
+    DAMSEL_ENTITY_TYPE_PRISM,  //   MBPRISM
+    DAMSEL_ENTITY_TYPE_UNDEFINED, // MBKNIFE
+    DAMSEL_ENTITY_TYPE_HEX,  //   MBHEX,
+    DAMSEL_ENTITY_TYPE_POLYHEDRON, //   MBPOLYHEDRON
+    DAMSEL_ENTITY_TYPE_UNDEFINED   //   MBENTITYSET
+};
+
+EntityType DamselUtil::dtom_entity_type[] = {
+    MBVERTEX,      //  MBVERTEX
+    MBEDGE,  // MBEDGE
+    MBTRI, // MBTRI
+    MBQUAD, //   MBQUAD
+    MBPOLYGON, //   MBPOLYGON
+    MBTET,//  MBTET
+    MBPRISM,  //   MBPRISM
+    MBPYRAMID,  //   MBPYRAMID
+    MBHEX,  //   MBHEX,
+    MBPOLYHEDRON, //   MBPOLYHEDRON
+    MBMAXTYPE,   //   MBENTITYSET
+    MBMAXTYPE // MBMAXTYPE
+};
+
+damsel_data_type DamselUtil::mtod_data_type[] = {
+    DAMSEL_DATA_TYPE_BYTES, // MB_TYPE_OPAQUE
+    DAMSEL_DATA_TYPE_INTEGER, // MB_TYPE_INTEGER
+    DAMSEL_DATA_TYPE_DOUBLE, // MB_TYPE_DOUBLE
+    DAMSEL_DATA_TYPE_INVALID, // MB_TYPE_BIT
+    DAMSEL_DATA_TYPE_HANDLE // MB_TYPE_HANDLE
+};
+
+DataType DamselUtil::dtom_data_type[] = {
+    MB_TYPE_OPAQUE, // DAMSEL_DATA_TYPE_INVALID = 0,


More information about the moab-dev mailing list