CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

accessing multiple user-defined libraries from one .so file

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 3, 2011, 20:52
Default accessing multiple user-defined libraries from one .so file
  #1
New Member
 
elbert
Join Date: Mar 2009
Location: Ames, IA
Posts: 9
Rep Power: 7
elbertj is on a distinguished road
Send a message via Skype™ to elbertj
I have created a few user-defined libraries into "libmy.so" and would like to use them one at a time in application simpleFoam. Hence I refer to only "libmy.so" in the controlDict. What I notice is that only the latest built library is accessible.

Can I store more than one user library in a single .so file?

Thanks,
Elbert
elbertj is offline   Reply With Quote

Old   March 4, 2011, 05:09
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 16
akidess will become famous soon enough
To me it sounds like this: You have multiple folders with the Make/files specifying the same output file. Now naturally every time you run wmake libso, the linker will overwrite the last binary - it's what you told it to do. If you want to link all files into one library, you will have to write one Make/files for all of them, doing something like the following:

Code:
lib1/source1.C
lib1/source2.C
lib2/source2.C
[...]

LIB = $(FOAM_USER_LIBBIN)/mylib
akidess is offline   Reply With Quote

Old   March 4, 2011, 13:37
Default
  #3
New Member
 
elbert
Join Date: Mar 2009
Location: Ames, IA
Posts: 9
Rep Power: 7
elbertj is on a distinguished road
Send a message via Skype™ to elbertj
Thanks Anton! I am now able to store multiple user-defined libraries in one .so file and use them.
elbertj is offline   Reply With Quote

Reply

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
swak4foam building problem GGerber OpenFOAM 45 July 30, 2013 16:08
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 15:00
Windows Installation BugsComments on Petrbs patch brooksmoses OpenFOAM Installation 48 April 16, 2006 01:20
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 04:24.