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

How to adjust Make/options

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 11, 2010, 15:28
Default How to adjust Make/options
  #1
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 462
Rep Power: 10
bastil is on a distinguished road
Hi all,

I have re-written triSurface library (MytriSurface) and placed them in FOAM_USER_LIBDIR. How I want a application to use this library. How do I need to adjust Make/options:

Code:
-I$(LIB_SRC)/MytriSurface/lnInclude
Where is LIB_SRC set and how do I need to change it? It obviously points to FOAM_SRC_DIR but I can not find any environment variable LIB_SRC?

Thanks Bastian
bastil is offline   Reply With Quote

Old   September 5, 2011, 11:41
Default
  #2
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 164
Rep Power: 6
linch is on a distinguished road
I also don't see any environment variable LIB_SRC. Where is it defined?

Regards,
illya
linch is offline   Reply With Quote

Old   September 5, 2011, 14:05
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,981
Blog Entries: 32
Rep Power: 68
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings to all!

( the initial post was a year and a half ago...)

OK, these kinds of variables that aren't in the shell environment, are usually defined somewhere in the wmake folder, also known as $WM_DIR:
Code:
echo $WM_DIR
Now, if you want to find out where it's located in one of those files, you can either use an advanced text editor (such as Kate or Eclipse IDE) or use the following commands:
Code:
cd $WM_DIR
find . | xargs grep 'LIB_SRC' -sl
The second line will use find to list all of the available files and folders; pipe "|" it to xargs for using each item on the list from find on grep. grep will then list the files that have the string we are searching for. Have doubts? Run:
Code:
man find
man xargs
man grep
For the lazy, the answer is as follows: it's defined in "$WM_DIR/Makefile".

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   September 6, 2011, 03:34
Default
  #4
Senior Member
 
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 164
Rep Power: 6
linch is on a distinguished road
Thank you Bruno,

I saw, that the original post is very old, but since there was no answer and I was interested in, I thought I'll take the existing one instead of starting a new one.

Best regards,
Illya
linch is offline   Reply With Quote

Old   September 6, 2011, 15:07
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,981
Blog Entries: 32
Rep Power: 68
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Illya,

No problem I was more stunned by the fact that the thread didn't receive any answers back then

Best regards,
Bruno
wyldckat 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
Help with ADJUST FUNCTION Munir Ahmed Khan FLUENT 0 August 8, 2008 06:33
ADJUST udf Jubs FLUENT 3 February 12, 2007 06:00
adjust gradient temperature on the cylinder's wall Konrad FLUENT 1 August 28, 2006 07:16
udf ADJUST for recuperer the couple louse each ite hamina FLUENT 1 March 2, 2006 14:54
How to adjust turbulent transport constants? Wang FLUENT 0 December 6, 2000 07:57


All times are GMT -4. The time now is 13:19.