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

How to change the $(FOAM_USER_LIBBIN) to other path?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By nsf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2019, 02:52
Default How to change the $(FOAM_USER_LIBBIN) to other path?
  #1
Member
 
Jiadong Wang
Join Date: Mar 2018
Location: Australia
Posts: 32
Rep Power: 8
jiadongw is on a distinguished road
Hello Foamers,

Usually I compiled a modified library in my PC by changing the /Make/files to:
Code:
LIB = $(FOAM_USER_LIBBIN)/libNew00
Everything works well. This will build a folder of /platforms on the Home directory.

Now I’m working on an HPC cluster and don’t have the permission to build a directory in /Home folder. Every single user has a personal directory, e.g. /Roy11 on other directory.

So if I want to compile a new library on this personal directory (/Roy11) of HPC cluster, how should I define the ‘LIB =’ in the /Make/files?

Thank you.
jiadongw is offline   Reply With Quote

Old   April 7, 2019, 01:54
Default
  #2
nsf
Senior Member
 
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 18
nsf is on a distinguished road
Hi,

How about
Code:
 
$(LIB=$(FOAM_SITE_LIBBIN)/libNew
You could also replace the $(...) With an absolute path instead and include the lib in your system/controlDict with an absolute path or add your lib directory to LD_LIBRARY_PATH.

Code:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Roy11/somepath
jiadongw likes this.
nsf is offline   Reply With Quote

Old   April 7, 2019, 21:01
Default
  #3
Member
 
Jiadong Wang
Join Date: Mar 2018
Location: Australia
Posts: 32
Rep Power: 8
jiadongw is on a distinguished road
Hello Nicolas,

Thank you very much for reply, it's definitely what I need.

I'll try that soon.

Best wishes.
jiadongw is offline   Reply With Quote

Reply

Tags
library path


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
Thermal phase change model Piti CFX 1 January 14, 2021 10:03
Extruding surface/domain mesh in helical path rahulksoni Pointwise & Gridgen 6 March 4, 2018 10:57
[waves2Foam] Error: "The directory path WAVES_DIR=:/home/waves2Foam does not exist." Dmitrjs OpenFOAM Community Contributions 3 June 27, 2014 08:53
Help with writing a macro/UDF_file/script to change BC at regular time step intervals Codophobia Fluent Multiphase 0 April 24, 2014 10:07
Change path in Tecplot Layout pascool Tecplot 1 November 14, 2012 10:36


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