[cgma-dev] Large OCC subtraction time

Rajeev Jain jain at mcs.anl.gov
Mon Feb 28 12:04:05 CST 2011


I see line 788 as blank on the current version in the repo: 
http://trac.mcs.anl.gov/projects/fathom/browser/MeshKit/trunk/rgg/io.cpp
Are you upto-date or do you have local modifications?
Try deleting io.cpp and restoring it.
 
Rajeev





________________________________
From: Jiangtao Hu <jiangtao_ma at yahoo.com>
To: Hong-Jun Kim <hongjun at mcs.anl.gov>
Cc: cgma-dev at mcs.anl.gov
Sent: Monday, February 28, 2011 11:35:13
Subject: Re: [cgma-dev] Large OCC subtraction time


Errors are:

make[3]: Entering directory `/mnt/disk2b/jhu/meshkit/rgg'
  CXX    io.lo
io.cpp: In member function ‘int CNrgen::ReadInputPhase1()’:
io.cpp:165: warning: suggest parentheses around ‘&&’ within ‘||’
io.cpp:172: warning: suggest parentheses around ‘&&’ within ‘||’
io.cpp: In member function ‘int CNrgen::ReadAndCreate()’:
io.cpp:528: warning: suggest parentheses around ‘&&’ within ‘||’
io.cpp:788: error: expected primary-expression before ‘<<’ token
io.cpp:788: error: expected primary-expression before ‘<<’ token
io.cpp:788: error: expected primary-expression before ‘<<’ token
io.cpp:788: error: expected primary-expression before ‘<’ token
io.cpp:788: error: expected primary-expression before ‘.’  token
io.cpp:791: error: expected primary-expression before ‘==’ token
io.cpp:791: error: expected primary-expression before ‘==’ token
io.cpp:791: error: expected primary-expression before ‘=’ token
io.cpp:793: error: expected primary-expression before ‘if’
io.cpp:793: error: expected ‘;’ before ‘if’
io.cpp: In member function ‘int CNrgen::CreateCubitJournal()’:
io.cpp:833: warning: unused variable ‘i’
io.cpp:833: warning: unused variable ‘j’
io.cpp: In member function ‘int CNrgen::CreateOuterCovering()’:
io.cpp:2017: warning: unused variable ‘p’
io.cpp: In member function ‘int CNrgen::Subtract_Pins()’:
io.cpp:2088: error: expected primary-expression before ‘<<’ token
io.cpp:2088: error: expected primary-expression before ‘<<’ token
io.cpp:2088: error: expected primary-expression before ‘<<’ token
io.cpp:2088: error: expected  primary-expression before ‘<’ token
io.cpp:2088: error: expected primary-expression before ‘.’ token
io.cpp:2090: error: expected ‘;’ before ‘if’
io.cpp:2873: error: expected ‘}’ at end of input
io.cpp:2873: error: expected ‘}’ at end of input
io.cpp:2873: warning: no return statement in function returning non-void

Thanks.

Jane
--- On Mon, 2/28/11, Hong-Jun Kim <hongjun at mcs.anl.gov> wrote:


>From: Hong-Jun Kim <hongjun at mcs.anl.gov>
>Subject: Re: [cgma-dev] Large OCC subtraction time
>To: "Jiangtao Hu" <jiangtao_ma at yahoo.com>
>Cc: cgma-dev at mcs.anl.gov
>Date: Monday, February 28, 2011, 12:31 PM
>
>
>What is your error?
>
>Hong-Jun
>
>----- Original Message -----
>> From: "Jiangtao Hu" <jiangtao_ma at yahoo.com>
>> To: "Hong-Jun Kim" <hongjun at mcs.anl.gov>
>> Cc: cgma-dev at mcs.anl.gov
>> Sent: Monday, February 28, 2011 11:15:51 AM
>> Subject: Re: [cgma-dev] Large OCC subtraction time
>> Ok, now I also updated and make installed Lasso, but meshkit still
>> fails to build. Any suggestions.
>> 
>> Jane
>> 
>> --- On Mon, 2/28/11, Jiangtao Hu <jiangtao_ma at yahoo.com> wrote:
>> 
>> 
>> 
>> From: Jiangtao Hu <jiangtao_ma at yahoo.com>
>> Subject: Re: [cgma-dev] Large OCC subtraction time
>> To: "Hong-Jun Kim" <hongjun at mcs.anl.gov>
>> Cc: cgma-dev at mcs.anl.gov
>> Date: Monday, February 28, 2011, 12:08 PM
>> 
>> 
>> Hi,
>> 
>> I just tried to build meshkit, with the following configure:
>> 
>> ./configure --enable-debug --with-itaps=/mnt/disk2b/jhu/ddriv
>> 
>> it failed on compiling EdgeMesher
>> make[3]: Entering directory `/mnt/disk2b/jhu/meshkit/algs'
>> CXX EdgeMesher.lo
>> In file included from EdgeMesher.cpp:1:
>> EdgeMesher.hpp:16:18: error: iRel.h: No such file or directory
>> In file included from EdgeMesher.cpp:1:
>>  EdgeMesher.hpp:40: error: ‘iRel_Instance’ has not been declared
>> EdgeMesher.hpp:40: error: ‘iRel_PairHandle’ has not been declared
>> In file included from EdgeMesher.cpp:1:
>> EdgeMesher.hpp:57: error: ‘iRel_Instance’ does not name a type
>> EdgeMesher.hpp:58: error: ‘iRel_PairHandle’ does not name a type
>> EdgeMesher.cpp:5: error: ‘iRel_Instance’ has not been declared
>> EdgeMesher.cpp:5: error: ‘iRel_PairHandle’ has not been declared
>> EdgeMesher.cpp: In constructor
>> ‘EdgeMesher::EdgeMesher(iGeom_Instance_Private*&,
>> iBase_EntityHandle_Private**, iMesh_Instance_Private*&, int&, int*)’:
>> EdgeMesher.cpp:31: error: ‘assoc’ was not declared in this scope
>> EdgeMesher.cpp:32: error: ‘rel’ was not declared in this scope
>> EdgeMesher.cpp: In member function ‘void EdgeMesher::EdgeMesh()’:
>> EdgeMesher.cpp:120: warning: unused  variable ‘NumEntitySet’
>> EdgeMesher.cpp: In member function ‘std::vector<double,
>> std::allocator<double> > EdgeMesher::BiasMeshing()’:
>> EdgeMesher.cpp:203: warning: unused variable ‘err’
>> EdgeMesher.cpp:204: warning: unused variable ‘x’
>> EdgeMesher.cpp:204: warning: unused variable ‘y’
>> EdgeMesher.cpp:204: warning: unused variable ‘z’
>> EdgeMesher.cpp:204: warning: unused variable ‘du’
>> EdgeMesher.cpp: In member function ‘std::vector<double,
>> std::allocator<double> > EdgeMesher::DualBiasMeshing()’:
>> EdgeMesher.cpp:250: warning: unused variable ‘err’
>> EdgeMesher.cpp:251: warning: unused variable ‘x’
>> EdgeMesher.cpp:251: warning: unused variable ‘y’
>> EdgeMesher.cpp:251: warning: unused variable ‘z’
>> EdgeMesher.cpp:251: warning: unused variable ‘ustart’
>> EdgeMesher.cpp:251:  warning: unused variable ‘du’
>> EdgeMesher.cpp: In member function ‘void
>> EdgeMesher::RapidSorting(std::vector<double, std::allocator<double>
>> >&, std::vector<double, std::allocator<double> >&, int, int)’:
>> EdgeMesher.cpp:433: warning: unused variable ‘x’
>> EdgeMesher.cpp:433: warning: unused variable ‘y’
>> EdgeMesher.cpp:433: warning: unused variable ‘z’
>> EdgeMesher.cpp: In member function ‘void
>> EdgeMesher::get_related_entityset(iBase_EntitySetHandle_Private*&)’:
>> EdgeMesher.cpp:591: error: ‘assoc’ was not declared in this scope
>> EdgeMesher.cpp:591: error: ‘rel’ was not declared in this scope
>> EdgeMesher.cpp:591: error: ‘iRel_getEntSetRelation’ was not declared
>> in this scope
>> EdgeMesher.cpp:607: error: ‘iRel_setEntSetRelation’ was not declared
>> in this scope
>> EdgeMesher.cpp:  In member function ‘void EdgeMesher::ShowCoorData()’:
>> EdgeMesher.cpp:619: error: ‘assoc’ was not declared in this scope
>> EdgeMesher.cpp:619: error: ‘rel’ was not declared in this scope
>> EdgeMesher.cpp:619: error: ‘iRel_getEntSetRelation’ was not declared
>> in this scope
>> 
>> I've updated cgm, moab and meshkit, and built, installed cgm and moab,
>> did I left something out?
>> 
>> Thanks.
>> 
>> Jane
>> --- On Sat, 2/26/11, Hong-Jun Kim <hongjun at mcs.anl.gov> wrote:
>> 
>> 
>> 
>> From: Hong-Jun Kim <hongjun at mcs.anl.gov>
>> Subject: Re: [cgma-dev] Large OCC subtraction time
>> To: "Jiangtao Hu" <jiangtao_ma at yahoo.com>
>> Cc: cgma-dev at mcs.anl.gov, "Rajeev Jain" <jain at mcs.anl.gov>
>> Date: Saturday, February 26, 2011, 12:22 PM
>> 
>> 
>> In my case of using OCC geometry, attribute updating and removing time
>> take too long.
>> It takes more than import/exporting time of the geometry.
>> 
>> Hong-Jun
>> 
>> ----- Original Message -----
>> > From: "Jiangtao Hu" < jiangtao_ma at yahoo.com >
>> > To: cgma-dev at mcs.anl.gov , "Rajeev Jain" < jain at mcs.anl.gov >
>> > Sent: Saturday, February 26, 2011 11:08:37 AM
>> > Subject: Re: [cgma-dev] Large OCC subtraction time
>> > Hi, Rajeev:
>> >
>> > Thank you for providing the testcase. OCC did have a reputation of
>> > getting much slower with larger models and more operations. I'll
>> > have
>> > a look on Monday to see if there's anything I can do on cgm side
>> > that
>> > can speed it up.
>> >
>> > Have a nice weekend!
>> >
>> > Jane
>> >
>> > --- On Fri, 2/25/11, Rajeev Jain < jain at mcs.anl.gov > wrote:
>> >
>> >
>> >
>> > From: Rajeev Jain < jain at mcs.anl.gov >
>>  > Subject: [cgma-dev] Large OCC subtraction time
>> > To: cgma-dev at mcs.anl.gov
>> > Date: Friday, February 25, 2011, 4:21 PM
>> >
>> >
>> >
>> > When subtracting 325 pins from a block, OCC takes a lot more time
>> > than
>> > the corresponding ACIS model. I'm attaching the assygen .inp that
>> > can
>> > be run as MeshKit/rgg>assygen 7. This file is for OCC version of
>> > MeshKit. For ACIS change the geometry engine to ACIS in the .inp
>> > file
>> > and run ACIS version.
>> >
>> > RGG o/p:
>> >
>> > ACIS:
>> >
>> > Normal Termination.
>> > Geometry file: 7.sat saved.
>> > Schemes file created: 7.template.jou
>> > Cubit journal file created: 7.jou
>> > Ending at : Fri Feb 25  15:10:31 2011
>> > Elapsed wall clock time: 8 seconds or 0.133333 mins
>> >
>> >
>> > OCC:
>> >
>> > Exported: 327 OCC Bodies to 7.stp
>> >
>> > Normal Termination.
>> > Geometry file: 7.stp saved.
>> > Schemes file created: 7.template.jou
>> > Cubit journal file created: 7.jou
>> > Ending at : Fri Feb 25 14:59:51 2011
>> > Elapsed wall clock time: 3173 seconds or 52.8833 mins
>> >
>> > The geometry files can be found at
>> > /homes/jain/MeshKit-all/trunk/rgg/test/geometry_parallel_meshing/7.stp
>> > and 7.sat
>> >
>> > Rajeev
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20110228/77a0fbf0/attachment-0001.htm>


More information about the cgma-dev mailing list