<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br><br>--- On <b>Mon, 2/28/11, Jiangtao Hu <i><jiangtao_ma@yahoo.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Jiangtao Hu <jiangtao_ma@yahoo.com><br>Subject: Re: [cgma-dev] Large OCC subtraction time<br>To: "Hong-Jun Kim" <hongjun@mcs.anl.gov><br>Cc: meshkit-dev@mcs.anl.gov<br>Date: Monday, February 28, 2011, 1:18 PM<br><br><div id="yiv975657404"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">Hi, Hong-Jun<br><br>I've done it by removing io.cpp file then get the new version, it's now working. Thanks.<br><br>I see that assygen 7 is doing very slow now, and it's still hanging for Duct no. 2. While I try to debug on it in ddd, I did "run assygen 7" which make 3 = argc in rgg/io.cpp file, it fails to give
correct file name for reading. I tried to give m_szInFile="7.inp" or "7" both failed. I am now looking at the code. Can someone also take a look on it?<br><br>Thanks.<br><br>Jane<br><br><br><br>--- On <b>Mon, 2/28/11, Hong-Jun Kim <i><hongjun@mcs.anl.gov></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Hong-Jun Kim <hongjun@mcs.anl.gov><br>Subject: Re: [cgma-dev] Large OCC subtraction time<br>To: "Jiangtao Hu" <jiangtao_ma@yahoo.com><br>Cc:
meshkit-dev@mcs.anl.gov<br>Date: Monday, February 28, 2011, 12:48 PM<br><br><div class="yiv975657404plainMail">I suspect some conflicts between your working version and the one in repository.<br>How about searching any "<<<" in your "io.cpp" and fix them?<br><br>Moreover, I think you also need "--enable-src" to use new MeshKit design algorithms fully.<br><br>Hong-Jun<br><br><br>----- Original Message -----<br>> From: "Jiangtao Hu" <<a rel="nofollow">jiangtao_ma@yahoo.com</a>><br>> To: "Hong-Jun Kim" <<a rel="nofollow">hongjun@mcs.anl.gov</a>><br>> Cc: <a rel="nofollow">cgma-dev@mcs.anl.gov</a><br>> Sent: Monday, February 28, 2011 11:35:13 AM<br>> Subject: Re: [cgma-dev] Large OCC subtraction time<br>> Errors are:<br>> <br>>
make[3]: Entering directory `/mnt/disk2b/jhu/meshkit/rgg'<br>> CXX io.lo<br>> io.cpp: In member function ‘int CNrgen::ReadInputPhase1()’:<br>> io.cpp:165: warning: suggest parentheses around ‘&&’ within ‘||’<br>> io.cpp:172: warning: suggest parentheses around ‘&&’ within ‘||’<br>> io.cpp: In member function ‘int CNrgen::ReadAndCreate()’:<br>> io.cpp:528: warning: suggest parentheses around ‘&&’ within ‘||’<br>> io.cpp:788: error: expected primary-expression before ‘<<’ token<br>> io.cpp:788: error: expected primary-expression before ‘<<’ token<br>> io.cpp:788: error: expected primary-expression before ‘<<’ token<br>> io.cpp:788: error: expected primary-expression before ‘<’ token<br>> io.cpp:788: error: expected primary-expression before ‘.’ token<br>> io.cpp:791: error: expected primary-expression before ‘==’
token<br>> io.cpp:791: error: expected primary-expression before ‘==’ token<br>> io.cpp:791: error: expected primary-expression before ‘=’ token<br>> io.cpp:793: error: expected primary-expression before ‘if’<br>> io.cpp:793: error: expected ‘;’ before ‘if’<br>> io.cpp: In member function ‘int CNrgen::CreateCubitJournal()’:<br>> io.cpp:833: warning: unused variable ‘i’<br>> io.cpp:833: warning: unused variable ‘j’<br>> io.cpp: In member function ‘int CNrgen::CreateOuterCovering()’:<br>> io.cpp:2017: warning: unused variable ‘p’<br>> io.cpp: In member function ‘int CNrgen::Subtract_Pins()’:<br>> io.cpp:2088: error: expected primary-expression before ‘<<’ token<br>> io.cpp:2088: error: expected primary-expression before ‘<<’ token<br>> io.cpp:2088: error: expected primary-expression before ‘<<’ token<br>> io.cpp:2088: error: expected
primary-expression before ‘<’ token<br>> io.cpp:2088: error: expected primary-expression before ‘.’ token<br>> io.cpp:2090: error: expected ‘;’ before ‘if’<br>> io.cpp:2873: error: expected ‘}’ at end of input<br>> io.cpp:2873: error: expected ‘}’ at end of input<br>> io.cpp:2873: warning: no return statement in function returning<br>> non-void<br>> <br>> Thanks.<br>> <br>> Jane<br>> --- On Mon, 2/28/11, Hong-Jun Kim <<a rel="nofollow">hongjun@mcs.anl.gov</a>> wrote:<br>> <br>> <br>> <br>> From: Hong-Jun Kim <<a rel="nofollow">hongjun@mcs.anl.gov</a>><br>> Subject: Re: [cgma-dev] Large OCC subtraction time<br>> To: "Jiangtao Hu" <<a rel="nofollow">jiangtao_ma@yahoo.com</a>><br>> Cc: <a rel="nofollow">cgma-dev@mcs.anl.gov</a><br>> Date: Monday, February 28, 2011, 12:31 PM<br>> <br>> <br>> What is your error?<br>> <br>> Hong-Jun<br>>
<br>> ----- Original Message -----<br>> > From: "Jiangtao Hu" < <a rel="nofollow">jiangtao_ma@yahoo.com</a> ><br>> > To: "Hong-Jun Kim" < <a rel="nofollow">hongjun@mcs.anl.gov</a> ><br>> > Cc: <a rel="nofollow">cgma-dev@mcs.anl.gov</a><br>> > Sent: Monday, February 28, 2011 11:15:51 AM<br>> > Subject: Re: [cgma-dev] Large OCC subtraction time<br>> > Ok, now I also updated and make installed
Lasso, but meshkit still<br>> > fails to build. Any suggestions.<br>> ><br>> > Jane<br>> ><br>> > --- On Mon, 2/28/11, Jiangtao Hu < <a rel="nofollow">jiangtao_ma@yahoo.com</a> > wrote:<br>> ><br>> ><br>> ><br>> > From: Jiangtao Hu < <a rel="nofollow">jiangtao_ma@yahoo.com</a> ><br>> > Subject: Re: [cgma-dev] Large OCC subtraction time<br>> > To: "Hong-Jun Kim" < <a rel="nofollow">hongjun@mcs.anl.gov</a> ><br>> > Cc: <a rel="nofollow">cgma-dev@mcs.anl.gov</a><br>> > Date: Monday, February 28, 2011, 12:08 PM<br>> ><br>> ><br>> > Hi,<br>> ><br>> > I just tried to build
meshkit, with the following configure:<br>> ><br>> > ./configure --enable-debug --with-itaps=/mnt/disk2b/jhu/ddriv<br>> ><br>> > it failed on compiling EdgeMesher<br>> > make[3]: Entering directory `/mnt/disk2b/jhu/meshkit/algs'<br>> > CXX EdgeMesher.lo<br>> > In file included from EdgeMesher.cpp:1:<br>> > EdgeMesher.hpp:16:18: error: iRel.h: No such file or directory<br>> > In file included from EdgeMesher.cpp:1:<br>> > EdgeMesher.hpp:40: error: ‘iRel_Instance’ has not been declared<br>> > EdgeMesher.hpp:40: error: ‘iRel_PairHandle’ has not been declared<br>> > In file included from EdgeMesher.cpp:1:<br>> > EdgeMesher.hpp:57: error: ‘iRel_Instance’ does not name a type<br>> > EdgeMesher.hpp:58: error: ‘iRel_PairHandle’ does not name a type<br>> > EdgeMesher.cpp:5: error: ‘iRel_Instance’ has not been declared<br>> > EdgeMesher.cpp:5:
error: ‘iRel_PairHandle’ has not been declared<br>> > EdgeMesher.cpp: In constructor<br>> > ‘EdgeMesher::EdgeMesher(iGeom_Instance_Private*&,<br>> > iBase_EntityHandle_Private**, iMesh_Instance_Private*&, int&,<br>> > int*)’:<br>> > EdgeMesher.cpp:31: error: ‘assoc’ was not declared in this scope<br>> > EdgeMesher.cpp:32: error: ‘rel’ was not declared in this scope<br>> > EdgeMesher.cpp: In member function ‘void EdgeMesher::EdgeMesh()’:<br>> > EdgeMesher.cpp:120: warning: unused variable ‘NumEntitySet’<br>> > EdgeMesher.cpp: In member function ‘std::vector<double,<br>> > std::allocator<double> > EdgeMesher::BiasMeshing()’:<br>> > EdgeMesher.cpp:203: warning: unused variable ‘err’<br>> > EdgeMesher.cpp:204: warning: unused variable ‘x’<br>> > EdgeMesher.cpp:204: warning: unused variable ‘y’<br>> >
EdgeMesher.cpp:204: warning: unused variable ‘z’<br>> > EdgeMesher.cpp:204: warning: unused variable ‘du’<br>> > EdgeMesher.cpp: In member function ‘std::vector<double,<br>> > std::allocator<double> > EdgeMesher::DualBiasMeshing()’:<br>> > EdgeMesher.cpp:250: warning: unused variable ‘err’<br>> > EdgeMesher.cpp:251: warning: unused variable ‘x’<br>> > EdgeMesher.cpp:251: warning: unused variable ‘y’<br>> > EdgeMesher.cpp:251: warning: unused variable ‘z’<br>> > EdgeMesher.cpp:251: warning: unused variable ‘ustart’<br>> > EdgeMesher.cpp:251: warning: unused variable ‘du’<br>> > EdgeMesher.cpp: In member function ‘void<br>> > EdgeMesher::RapidSorting(std::vector<double, std::allocator<double><br>> > >&, std::vector<double, std::allocator<double> >&, int, int)’:<br>> > EdgeMesher.cpp:433: warning:
unused variable ‘x’<br>> > EdgeMesher.cpp:433: warning: unused variable ‘y’<br>> > EdgeMesher.cpp:433: warning: unused variable ‘z’<br>> > EdgeMesher.cpp: In member function ‘void<br>> > EdgeMesher::get_related_entityset(iBase_EntitySetHandle_Private*&)’:<br>> > EdgeMesher.cpp:591: error: ‘assoc’ was not declared in this scope<br>> > EdgeMesher.cpp:591: error: ‘rel’ was not declared in this scope<br>> > EdgeMesher.cpp:591: error: ‘iRel_getEntSetRelation’ was not declared<br>> > in this scope<br>> > EdgeMesher.cpp:607: error: ‘iRel_setEntSetRelation’ was not declared<br>> > in this scope<br>> > EdgeMesher.cpp: In member function ‘void<br>> > EdgeMesher::ShowCoorData()’:<br>> > EdgeMesher.cpp:619: error: ‘assoc’ was not declared in this scope<br>> > EdgeMesher.cpp:619: error: ‘rel’ was not declared in this scope<br>> >
EdgeMesher.cpp:619: error: ‘iRel_getEntSetRelation’ was not declared<br>> > in this scope<br>> ><br>> > I've updated cgm, moab and meshkit, and built, installed cgm and<br>> > moab,<br>> > did I left something out?<br>> ><br>> > Thanks.<br>> ><br>> > Jane<br>> > --- On Sat, 2/26/11, Hong-Jun Kim < <a rel="nofollow">hongjun@mcs.anl.gov</a> > wrote:<br>> ><br>> ><br>> ><br>> > From: Hong-Jun Kim < <a rel="nofollow">hongjun@mcs.anl.gov</a> ><br>> > Subject: Re: [cgma-dev] Large OCC subtraction time<br>> > To: "Jiangtao Hu" < <a rel="nofollow">jiangtao_ma@yahoo.com</a> ><br>> > Cc: <a rel="nofollow">cgma-dev@mcs.anl.gov</a> , "Rajeev Jain" < <a rel="nofollow">jain@mcs.anl.gov</a> ><br>> > Date: Saturday, February 26, 2011, 12:22 PM<br>> ><br>> ><br>> > In my case of using OCC geometry, attribute updating
and removing<br>> > time<br>> > take too long.<br>> > It takes more than import/exporting time of the geometry.<br>> ><br>> > Hong-Jun<br>> ><br>> > ----- Original Message -----<br>> > > From: "Jiangtao Hu" < <a rel="nofollow">jiangtao_ma@yahoo.com</a> ><br>> > > To: <a rel="nofollow">cgma-dev@mcs.anl.gov</a> , "Rajeev Jain" < <a rel="nofollow">jain@mcs.anl.gov</a> ><br>> > > Sent: Saturday, February 26, 2011 11:08:37 AM<br>> > > Subject: Re: [cgma-dev] Large OCC subtraction time<br>> > > Hi, Rajeev:<br>> > ><br>> > > Thank you for providing the testcase. OCC did have a reputation of<br>> > > getting much slower with larger models and more operations. I'll<br>> > > have<br>> > > a look on Monday to see if there's anything I can do on cgm side<br>> > > that<br>> > > can speed it up.<br>> >
><br>> > > Have a nice weekend!<br>> > ><br>> > > Jane<br>> > ><br>> > > --- On Fri, 2/25/11, Rajeev Jain < <a rel="nofollow">jain@mcs.anl.gov</a> > wrote:<br>> > ><br>> > ><br>> > ><br>> > > From: Rajeev Jain < <a rel="nofollow">jain@mcs.anl.gov</a> ><br>> > > Subject: [cgma-dev] Large OCC subtraction time<br>> > > To: <a rel="nofollow">cgma-dev@mcs.anl.gov</a><br>> > > Date: Friday, February 25, 2011, 4:21 PM<br>> > ><br>> > ><br>> > ><br>> > > When subtracting 325 pins from a block, OCC takes a lot more time<br>> > > than<br>> > > the corresponding ACIS model. I'm attaching the assygen .inp that<br>> > > can<br>> > > be run as MeshKit/rgg>assygen 7. This file is for OCC version of<br>> > > MeshKit. For ACIS change the geometry engine to ACIS in
the .inp<br>> > > file<br>> > > and run ACIS version.<br>> > ><br>> > > RGG o/p:<br>> > ><br>> > > ACIS:<br>> > ><br>>
> > Normal Termination.<br>> > > Geometry file: 7.sat saved.<br>> > > Schemes file created: 7.template.jou<br>> > > Cubit journal file created: 7.jou<br>> > > Ending at : Fri Feb 25 15:10:31 2011<br>> > > Elapsed wall clock time: 8 seconds or 0.133333 mins<br>> > ><br>> > ><br>> > > OCC:<br>> > ><br>> > > Exported: 327 OCC Bodies to 7.stp<br>> > ><br>> > > Normal Termination.<br>> > > Geometry file: 7.stp saved.<br>> > > Schemes file created: 7.template.jou<br>> > > Cubit journal file created: 7.jou<br>> > > Ending at : Fri Feb 25 14:59:51 2011<br>> > > Elapsed wall clock time: 3173 seconds or 52.8833 mins<br>> > ><br>> > > The geometry files can be found at<br>> > > /homes/jain/MeshKit-all/trunk/rgg/test/geometry_parallel_meshing/7.stp<br>> > > and
7.sat<br>> > ><br>> > > Rajeev<br></div></blockquote></td></tr></tbody></table><br>
</div></blockquote></td></tr></table><br>