CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Compile of the library is so slow

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 15, 2005, 00:11
Default I found that PrimitivePatch di
Senior Member
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 10
liu is on a distinguished road
I found that PrimitivePatch didn't implement two functions: internalEdges() and boundaryEdges().
These two functions are used in PrimitivePatchInterpolation<patch>::faceToEdgeInte rpolate().
If we don't use "faceToEdgeInterpolate" function, everything is fine.

So I implemented those two functions in class PrimitivePatch.

But, when I try to compile the library with "wmake libso OpenFOAM" command, it's so so slow. The compiler works very hard to compile everything in the directory of OpenFOAM.

Since I only changed a little in the library code, is there any method to only compile these changes and make the library? I mean don't recompile all files to get those object files.
Xiaofeng Liu, Ph.D., P.E.,
Assistant Professor
Department of Civil and Environmental Engineering
Penn State University
223B Sackett Building
University Park, PA 16802

liu is offline   Reply With Quote

Old   July 15, 2005, 02:49
Default PrimitivePatch is templated on
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,810
Rep Power: 25
hjasak will become famous soon enough
PrimitivePatch is templated on the type of container that holds the faces and what the compiler is doing is OK - there is a LOT of code depending on PrimitivePatch. As for internal and boundary edges, the organisation of code has changed. Edges are ordered such that the internal edges come first, up to nInternalEdges() and are followed by the boundayr edges. I am not sure why the faceToEdgeInterpolate code was not fixed, but I'll have a look - should be easy.

Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting:
hjasak is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
slow simulation Shuo Main CFD Forum 2 February 28, 2008 20:07
V4 very slow! Steve Siemens 3 June 9, 2006 07:37
Converging very slow Q FLUENT 0 March 16, 2006 04:48
DPM slow evaporation Vix FLUENT 3 November 30, 2005 14:38
Slow convergence Jesper CFX 1 July 7, 2004 16:59

All times are GMT -4. The time now is 12:06.