I'll look into it. Currently I found the single lump body attribute seems lost, other ids are all kept. I'll look into details. Thanks.<br><br>Jane<br><br><div class="gmail_quote">On Tue, Jul 12, 2011 at 12:23 PM, Hong-Jun Kim <span dir="ltr"><<a href="mailto:hongjun@mcs.anl.gov">hongjun@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">This seems not checked if attributes are really restored after importing geometry again.<br>
I think entity ids have to be checked restored correctly.<br>
<font color="#888888"><br>
Hong-Jun<br>
</font><div><div></div><div class="h5"><br>
<br>
----- Original Message -----<br>
From: "jiangtao ma" <<a href="mailto:jiangtao_ma@yahoo.com">jiangtao_ma@yahoo.com</a>><br>
To: <a href="mailto:cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br>
Sent: Tuesday, July 12, 2011 11:55:15 AM<br>
Subject: [cgma-dev] r5052 - cgm/trunk/test<br>
<br>
Author: janehu<br>
Date: 2011-07-12 11:55:15 -0500 (Tue, 12 Jul 2011)<br>
New Revision: 5052<br>
<br>
Modified:<br>
cgm/trunk/test/attribute_to_buffer.cpp<br>
cgm/trunk/test/attribute_to_file.cpp<br>
cgm/trunk/test/makept.cpp<br>
cgm/trunk/test/modify.cpp<br>
Log:<br>
Remove parallel test from attribute export tests; minor updates for modify and makept.<br>
<br>
Modified: cgm/trunk/test/attribute_to_buffer.cpp<br>
===================================================================<br>
--- cgm/trunk/test/attribute_to_buffer.cpp 2011-07-11 20:23:21 UTC (rev 5051)<br>
+++ cgm/trunk/test/attribute_to_buffer.cpp 2011-07-12 16:55:15 UTC (rev 5052)<br>
@@ -4,10 +4,10 @@<br>
#include "Body.hpp"<br>
#include "CGMApp.hpp"<br>
#include "CubitAttribManager.hpp"<br>
-#include "CADefines.hpp"<br>
-#include "TDParallel.hpp"<br>
-#include "CABodies.hpp"<br>
+#include "CAEntityId.hpp"<br>
<br>
+#include <iostream><br>
+#include <string><br>
#include <stdio.h><br>
#include <stdlib.h><br>
<br>
@@ -37,8 +37,8 @@<br>
ASSERT(s);<br>
<br>
// actuate CA_BODIES attribute and turn on auto flag<br>
- CGMApp::instance()->attrib_manager()->register_attrib_type(CA_BODIES, "bodies", "BODIES",<br>
- CABodies_creator, CUBIT_TRUE,<br>
+ CGMApp::instance()->attrib_manager()->register_attrib_type(CA_ENTITY_ID, "id", "ENTITY_ID",<br>
+ CAEntityId_creator, CUBIT_TRUE,<br>
CUBIT_TRUE, CUBIT_TRUE, CUBIT_TRUE,<br>
CUBIT_TRUE, CUBIT_FALSE);<br>
CGMApp::instance()->attrib_manager()->auto_flag(CUBIT_TRUE);<br>
@@ -53,24 +53,6 @@<br>
s = GeometryQueryTool::instance()->translate( bricks[i], CubitVector(i,0,0) );<br>
ASSERT(s);<br>
export_list.append( bricks[i] );<br>
-<br>
- // add tool data to bodies<br>
- RefEntity* entity = dynamic_cast<RefEntity*> (bricks[i]);<br>
- DLIList<int> shared_procs;<br>
- shared_procs.append(i);<br>
- TDParallel *td_par = (TDParallel *) entity->get_TD(&TDParallel::is_parallel);<br>
- if (td_par == NULL) td_par = new TDParallel(entity, NULL, &shared_procs);<br>
-<br>
- // add tool data to volumes too<br>
- DLIList<RefVolume*> volumes;<br>
- (dynamic_cast<TopologyEntity*> (entity))->ref_volumes(volumes);<br>
- int n_vol = volumes.size();<br>
- volumes.reset();<br>
- for (int j = 0; j < n_vol; j++) {<br>
- RefEntity *vol = volumes.get_and_step();<br>
- td_par = (TDParallel *) vol->get_TD(&TDParallel::is_parallel);<br>
- if (td_par == NULL) td_par = new TDParallel(vol, NULL, &shared_procs);<br>
- }<br>
</div></div></blockquote></div><br>