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

jain at mcs.anl.gov jain at mcs.anl.gov
Tue Oct 26 16:54:15 CDT 2010


Author: jain
Date: 2010-10-26 16:54:15 -0500 (Tue, 26 Oct 2010)
New Revision: 4242

Modified:
   MOAB/trunk/src/io/WriteCCMIO.cpp
Log:
o Fix bug when writing material names (this is now read in Tqdcfr) to .ccm file.


Modified: MOAB/trunk/src/io/WriteCCMIO.cpp
===================================================================
--- MOAB/trunk/src/io/WriteCCMIO.cpp	2010-10-26 20:04:04 UTC (rev 4241)
+++ MOAB/trunk/src/io/WriteCCMIO.cpp	2010-10-26 21:54:15 UTC (rev 4242)
@@ -471,6 +471,10 @@
       if (!matset_data[i].setName.empty()){
 	CCMIONewIndexedEntity(&error, problemID, kCCMIOCellType, matset_data[i].matsetId, 
 			      matset_data[i].setName.c_str(), &id);
+	CHKCCMERR(error, "Failure creating celltype node."); 
+
+	CCMIOWriteOptstr(&error, id, "MaterialType", matset_data[i].setName.c_str());
+	CHKCCMERR(error, "Error assigning material name.");
       }
       else{
 	char dum_name[NAME_TAG_SIZE]; 






































More information about the moab-dev mailing list