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

Hong-Jun Kim hongjun at mcs.anl.gov
Thu Jul 14 18:11:15 CDT 2011


Even though there are wrong loop direction returns in current OCC, it is working for parallel meshing with great import/export speed improvement with OCC6.3. (With OCC6.5, I have some errors with "make check")

Thank you for your work and let me ask more questions about surface loop direction after checking something.

-----------------------------
Hong-Jun Kim
Post-doc researcher
MCS, Argonne National Laboratory
9700 S. Cass Ave. B240/R2147
Argonne, IL 60439
630-252-4791
hongjun at mcs.anl.gov
-----------------------------

----- Original Message -----
From: "Jane Hu" <janejhu at gmail.com>
To: "Hong-Jun Kim" <hongjun at mcs.anl.gov>
Cc: cgma-dev at mcs.anl.gov
Sent: Thursday, July 14, 2011 12:03:27 PM
Subject: Re: [cgma-dev] r5052 - cgm/trunk/test

Hi, HongJun: 

With r5056 that I just checked in, it should work for your concern. Please double check that it works for your parallel work. 

Thanks. 

Jane 




On Tue, Jul 12, 2011 at 12:23 PM, Hong-Jun Kim < hongjun at mcs.anl.gov > wrote: 


This seems not checked if attributes are really restored after importing geometry again. 
I think entity ids have to be checked restored correctly. 

Hong-Jun 





----- Original Message ----- 
From: "jiangtao ma" < jiangtao_ma at yahoo.com > 
To: cgma-dev at mcs.anl.gov 
Sent: Tuesday, July 12, 2011 11:55:15 AM 
Subject: [cgma-dev] r5052 - cgm/trunk/test 

Author: janehu 
Date: 2011-07-12 11:55:15 -0500 (Tue, 12 Jul 2011) 
New Revision: 5052 

Modified: 
cgm/trunk/test/attribute_to_buffer.cpp 
cgm/trunk/test/attribute_to_file.cpp 
cgm/trunk/test/makept.cpp 
cgm/trunk/test/modify.cpp 
Log: 
Remove parallel test from attribute export tests; minor updates for modify and makept. 

Modified: cgm/trunk/test/attribute_to_buffer.cpp 
=================================================================== 
--- cgm/trunk/test/attribute_to_buffer.cpp 2011-07-11 20:23:21 UTC (rev 5051) 
+++ cgm/trunk/test/attribute_to_buffer.cpp 2011-07-12 16:55:15 UTC (rev 5052) 
@@ -4,10 +4,10 @@ 
#include "Body.hpp" 
#include "CGMApp.hpp" 
#include "CubitAttribManager.hpp" 
-#include "CADefines.hpp" 
-#include "TDParallel.hpp" 
-#include "CABodies.hpp" 
+#include "CAEntityId.hpp" 

+#include <iostream> 
+#include <string> 
#include <stdio.h> 
#include <stdlib.h> 

@@ -37,8 +37,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 +53,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(); 
- for (int j = 0; j < n_vol; j++) { 
- RefEntity *vol = volumes.get_and_step(); 
- td_par = (TDParallel *) vol->get_TD(&TDParallel::is_parallel); 
- if (td_par == NULL) td_par = new TDParallel(vol, NULL, &shared_procs); 
- } 



More information about the cgma-dev mailing list