CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Problem in path of compiled FOAM utilities (http://www.cfd-online.com/Forums/openfoam/92789-problem-path-compiled-foam-utilities.html)

Alexvader September 25, 2011 13:37

Problem in path of compiled FOAM utilities
 
Hi

I have a working OF installation, I have already run several tutorials, created my own analysis cases, so no hassle, I am currently using OF-2.0.1, it is installed in ~ ( /home/alex/OpenFOAM/OpenFOAM-2.0.1 )

I have compiled the swak4foam utility set for OF, but when i try to use funkySetFields, it simply is not on path ,

alex@iskandhar:~/OpenFOAM/alex-2.0.1/platforms/linux64GccDPOpt/bin$ ls -l
total 684
-rwxr-xr-x 1 alex alex 104904 Sep 4 19:00 funkyDoCalc
-rwxr-xr-x 1 alex alex 74007 Sep 4 18:59 funkySetBoundaryField
-rwxr-xr-x 1 alex alex 303977 Sep 4 18:59 funkySetFields
-rwxr-xr-x 1 alex alex 206834 Sep 4 18:59 replayTransientBC
alex@iskandhar:~/OpenFOAM/alex-2.0.1/platforms/linux64GccDPOpt/bin$ ls -l ../lib
total 6264
-rwxr-xr-x 1 alex alex 903327 Sep 4 18:57 libgroovyBC.so
-rwxr-xr-x 1 alex alex 168781 Sep 4 18:59 libgroovyStandardBCs.so
-rwxr-xr-x 1 alex alex 689915 Sep 4 18:59 libsimpleFunctionObjects.so
-rwxr-xr-x 1 alex alex 158536 Sep 4 18:59 libsimpleSwakFunctionObjects.so
-rwxr-xr-x 1 alex alex 3853279 Sep 4 18:57 libswak4FoamParsers.so
-rwxr-xr-x 1 alex alex 378327 Sep 4 18:57 libswakFunctionObjects.so
-rwxr-xr-x 1 alex alex 196913 Sep 4 18:59 libswakSourceFields.so
-rwxr-xr-x 1 alex alex 47223 Sep 4 18:59 libswakTopoSources.so
alex@iskandhar:~/OpenFOAM/alex-2.0.1/platforms/linux64GccDPOpt/bin$ funkySetFields
bash: funkySetFields: command not found
alex@iskandhar:~/OpenFOAM/alex-2.0.1/platforms/linux64GccDPOpt/bin$


yet when they were compiled, they were correctly placed in its default directories...

my ~/.bashrc contains the relevant entry...


################################################## ########
#### My Stuff
################################################## ########

export PATH=$PATH:/usr/brlcad/bin:/opt/MbDyn/bin:/usr/local/dakota/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/brlcad/lib:/opt/MbDyn/lib:/usr/local/dakota/lib

#. /opt/openfoam171/etc/bashrc
. $HOME/OpenFOAM/OpenFOAM-2.0.1/etc/bashrc
#. $HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc

. /opt/intel/bin/compilervars.sh intel64

. /opt/syrthes3.4.2/bin/syrthes.profile



How come funkySetFields cannot be found... ??

Can someone help me on this ?

BRGDS

Alex

Alexvader September 25, 2011 13:42

I think I got a hint about what may be happening :

I have noticed that the path of my utilities is

alex@iskandhar:~/OpenFOAM/alex-2.0.1/platforms/linux64GccDPOpt/bin$

while the path of my OF bins and libs is /home/alex/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64IccDPOpt/....


Does anyone here thinks this may be the issue...?

Alexvader September 25, 2011 13:47

Solved my problem ... stupid me :D ROTFLMAO

I renamed the /home/alex///home/alex/OpenFOAM/alex-2.0.1/platforms/linux64IccDPOpt/ to /home/alex/OpenFOAM/alex-2.0.1/platforms/linux64IccDPOpt/... issue fixed ... :)


Now, how come in an Intel compiled OF version, my utilities land in a Gcc platform folder...??

BRGDS

Alex

wyldckat September 25, 2011 14:35

Hi Alex,

Possibly you are using different shell terminals, where one of them is using Gcc and the other one is using Icc. To be certain of this and since you're running OpenFOAM 2.0, run wmSET to refresh the OpenFOAM environment in the respective terminal window/terminal.
Before and after that, run:
Code:

echo $WM_COMPILER
The command above will show you the currently active compiler.

Here are a few tips about this issue: Advanced tips for working with the OpenFOAM shell environment
It's still far from being complete, but it should give you a bit of insight on the whole "OpenFOAM environment" business :)

Best regards,
Bruno

Alexvader September 25, 2011 14:49

Hi

Thks for your reply

alex@iskandhar:~/buildfactory/ngen/comb$ echo $WM_COMPILER
Icc
alex@iskandhar:~/buildfactory/ngen/comb$

My compiler was set up in .../etc/bashrc, prior to compiling OF...

So my utilities should have been set to be compiled with Icc, and i believe they have been... or else, calling any one of them would have thrown a linking error about unressoved symbols, in case the utilities might have been compiled with gcc...

happened the same when i compiled Spooles with Gcc and tried to link with calculix compiled with Ifort/icc... so i believe that my utilities/libs have been built with Icc, same way OF has, now, how come are they launched into that folder... ?

BRGDS

Alex


All times are GMT -4. The time now is 17:29.