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

accessing multiple user-defined libraries from one .so file

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By akidess

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2011, 19:52
Default accessing multiple user-defined libraries from one .so file
  #1
New Member
 
elbert
Join Date: Mar 2009
Location: USA
Posts: 10
Rep Power: 17
elbertj is on a distinguished road
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, 04:09
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
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
jobin2600 likes this.
akidess is offline   Reply With Quote

Old   March 4, 2011, 12:37
Default
  #3
New Member
 
elbert
Join Date: Mar 2009
Location: USA
Posts: 10
Rep Power: 17
elbertj is on a distinguished road
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00
Windows Installation BugsComments on Petrbs patch brooksmoses OpenFOAM Installation 48 April 16, 2006 00:20
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


All times are GMT -4. The time now is 16:15.