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

jain at mcs.anl.gov jain at mcs.anl.gov
Tue Jul 20 15:05:47 CDT 2010


Author: jain
Date: 2010-07-20 15:05:47 -0500 (Tue, 20 Jul 2010)
New Revision: 4060

Modified:
   MOAB/trunk/src/io/WriteCCMIO.cpp
Log:
o Handling empty neumann sets before calling write_external_faces
o Removed the block for 'one element' mesh, it is now tracked while writing external faces.


Modified: MOAB/trunk/src/io/WriteCCMIO.cpp
===================================================================
--- MOAB/trunk/src/io/WriteCCMIO.cpp	2010-07-15 20:12:27 UTC (rev 4059)
+++ MOAB/trunk/src/io/WriteCCMIO.cpp	2010-07-20 20:05:47 UTC (rev 4060)
@@ -78,9 +78,9 @@
 
 namespace moab {
 
-static char const kStateName[] = "default";
+  static char const kStateName[] = "default";
 
-static const int ccm_types[] = {
+  static const int ccm_types[] = {
     1,   // MBVERTEX
     2,   // MBEDGE      
     -1,  // MBTRI
@@ -92,237 +92,237 @@
     -1,  // MBKNIFE
     11,  // MBHEX
     255  // MBPOLYHEDRON
-};
+  };
 
 #define INS_ID(stringvar, prefix, id)           \
-sprintf(stringvar, prefix, id)
+  sprintf(stringvar, prefix, id)
 
-#define CHKERR(a, b)                                 \
-    {if (MB_SUCCESS != a) {if (b) mWriteIface->report_error(b); return a;}}
+#define CHKERR(a, b)							\
+  {if (MB_SUCCESS != a) {if (b) mWriteIface->report_error(b); return a;}}
 
-#define CHKCCMERR(a, b)                                 \
-    {if (kCCMIONoErr != a) {if (b) mWriteIface->report_error(b); return MB_FAILURE;}}
+#define CHKCCMERR(a, b)							\
+  {if (kCCMIONoErr != a) {if (b) mWriteIface->report_error(b); return MB_FAILURE;}}
   
-WriterIface* WriteCCMIO::factory( Interface* iface )
-{ return new WriteCCMIO( iface ); }
+  WriterIface* WriteCCMIO::factory( Interface* iface )
+  { return new WriteCCMIO( iface ); }
 
-WriteCCMIO::WriteCCMIO(Interface *impl) 
-        : mbImpl(impl), mCurrentMeshHandle(0), mNameTag(0), mMaterialIdTag(0), 
-          mMaterialTypeTag(0), 
-          mRadiationTag(0), mPorosityIdTag(0), mSpinIdTag(0), mGroupIdTag(0), mColorIdxTag(0),
-          mProcessorIdTag(0), mLightMaterialTag(0), mFreeSurfaceMaterialTag(0), 
-          mThicknessTag(0), mProstarRegionNumberTag(0), mBoundaryTypeTag(0), mCreatingProgramTag(0),
-          mWholeMesh(false)
-{
-  assert(impl != NULL);


More information about the moab-dev mailing list