[cgma-dev] r5019 - cgm/trunk/test

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Thu Jun 16 13:08:00 CDT 2011


Author: janehu
Date: 2011-06-16 13:07:59 -0500 (Thu, 16 Jun 2011)
New Revision: 5019

Modified:
   cgm/trunk/test/attribute_to_file.cpp
Log:
Get rid of parallel part in the attribute testing.

Modified: cgm/trunk/test/attribute_to_file.cpp
===================================================================
--- cgm/trunk/test/attribute_to_file.cpp	2011-06-16 17:36:48 UTC (rev 5018)
+++ cgm/trunk/test/attribute_to_file.cpp	2011-06-16 18:07:59 UTC (rev 5019)
@@ -1,3 +1,7 @@
+#include <iostream>
+#include <fstream>
+#include <string>
+
 #include "InitCGMA.hpp"
 #include "GeometryModifyTool.hpp"
 #include "GeometryQueryTool.hpp"
@@ -4,9 +8,7 @@
 #include "Body.hpp"
 #include "CGMApp.hpp"
 #include "CubitAttribManager.hpp"
-#include "CADefines.hpp"
-#include "TDParallel.hpp"
-#include "CABodies.hpp"
+#include "CAEntityId.hpp"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -37,8 +39,8 @@
   ASSERT(s);
   
   // actuate CA_BODIES attribute and turn on auto flag
-  CGMApp::instance()->attrib_manager()->register_attrib_type(CA_BODIES, "bodies", "BODIES",
-							     CABodies_creator, CUBIT_TRUE,
+  CGMApp::instance()->attrib_manager()->register_attrib_type(CA_ENTITY_ID, "id", "ENTITY_ID",
+							     CAEntityId_creator, CUBIT_TRUE,
 							     CUBIT_TRUE, CUBIT_TRUE, CUBIT_TRUE,
 							     CUBIT_TRUE, CUBIT_FALSE);
   CGMApp::instance()->attrib_manager()->auto_flag(CUBIT_TRUE);
@@ -53,24 +55,6 @@
     s = GeometryQueryTool::instance()->translate( bricks[i], CubitVector(i,0,0) );
     ASSERT(s);
     export_list.append( bricks[i] );
-
-    // add tool data to bodies
-    RefEntity* entity = dynamic_cast<RefEntity*> (bricks[i]);
-    DLIList<int> shared_procs;
-    shared_procs.append(i);
-    TDParallel *td_par = (TDParallel *) entity->get_TD(&TDParallel::is_parallel);
-    if (td_par == NULL) td_par = new TDParallel(entity, NULL, &shared_procs);
-
-    // add tool data to volumes too
-    DLIList<RefVolume*> volumes;
-    (dynamic_cast<TopologyEntity*> (entity))->ref_volumes(volumes);
-    int n_vol = volumes.size();
-    volumes.reset();


More information about the cgma-dev mailing list