|
[Sponsors] |
March 16, 2005, 08:35 |
We are trying to install OpenF
|
#1 |
Senior Member
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17 |
We are trying to install OpenFOAM on our cluster in order to be used by all the users.
Everything works fine, the question now is what is the right way to handle the user libraries... When a user creates is own boundary conditions ,for example, and recompile the foamUser library the file libfoamUser.so is modified. A user should not have the right to access the lib directory.. Is there any other method to handle this except to give the writing file permission to all the users? Daniele |
|
March 16, 2005, 08:46 |
Users libraries should be comp
|
#2 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
Users libraries should be compiled into their own library directory. There are a set of FOAM_USER_??? variables within the build system to handle this. So the user should create a copy of the foamUser directory and change the Make/files file in their to create the libfoamUser.so in their own directory:
LIB = $(FOAM_USER_LIBBIN)/libfoamUser and put a list of all the files they want to build and link into their library into that file as well, e.g. interpolations = interpolations surfaceInterpolation = $(interpolations)/surfaceInterpolation schemes = $(surfaceInterpolation)/schemes $(schemes)/limiterTest/limiterTestMake.C turbulenceModels/incompressible/v2f/v2f.C libfoamUser.C LIB = $(FOAM_USER_LIBBIN)/libfoamUser |
|
March 16, 2005, 10:12 |
Thanks very much, now everithi
|
#3 |
Senior Member
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17 |
Thanks very much, now everithing is working fine!!
Just one extra little question, in order to make it work I had to add in my $PATH the $(FOAM_USER_LIBBIN) as well as $(FOAM_USER_APPBIN) path. Was it the right thing to do? or I am making some other mistake Daniele |
|
March 16, 2005, 10:16 |
That's a bit strange, as long
|
#4 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
That's a bit strange, as long as you have $FOAM_USER_LIBBIN in your $LD_LIBRARY_PATH it should work fine. This should be done automatically by the OpenFOAM dot-files, could you check and let me know.
|
|
March 16, 2005, 10:36 |
The reason was that after the
|
#5 |
Senior Member
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17 |
The reason was that after the creation of the $FOAM_USER_LIBBIN directory I didn't update the shell variables with the command
. /opt/OpenFOAM/OpenFOAM-1.0.2/.OpenFOAM-1.0.2/bashrc Now everithing is clear, thanks very much! |
|
March 16, 2005, 10:55 |
The creation of those director
|
#6 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
The creation of those directories, the setting of the corresponding environment variable and the update of $PATH and $LD_LIBRARY_PATH is fully automatic in OpenFOAM-1.1
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Best cluster configuration | ziad | OpenFOAM Installation | 15 | September 21, 2007 13:36 |
Configuration of MPICH | mer | OpenFOAM Installation | 31 | June 6, 2007 19:08 |
Dual configuration | ff | FLUENT | 0 | January 27, 2004 07:14 |
PC configuration for CFD | Fernando Sanz | Main CFD Forum | 17 | December 19, 2001 08:29 |
airplane configuration | Shereef | Main CFD Forum | 10 | October 26, 2000 12:48 |