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

Problem in path of compiled FOAM utilities

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 25, 2011, 13:37
Default Problem in path of compiled FOAM utilities
  #1
Member
 
Alex
Join Date: Apr 2010
Posts: 32
Rep Power: 7
Alexvader is on a distinguished road
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 is offline   Reply With Quote

Old   September 25, 2011, 13:42
Default
  #2
Member
 
Alex
Join Date: Apr 2010
Posts: 32
Rep Power: 7
Alexvader is on a distinguished road
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 is offline   Reply With Quote

Old   September 25, 2011, 13:47
Default
  #3
Member
 
Alex
Join Date: Apr 2010
Posts: 32
Rep Power: 7
Alexvader is on a distinguished road
Solved my problem ... stupid me 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
Alexvader is offline   Reply With Quote

Old   September 25, 2011, 14:35
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   September 25, 2011, 14:49
Default
  #5
Member
 
Alex
Join Date: Apr 2010
Posts: 32
Rep Power: 7
Alexvader is on a distinguished road
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
Alexvader 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
StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
Problem with a compiled ADJUST kash Fluent UDF and Scheme Programming 1 November 25, 2009 07:47
Problem with foam utilities in foamx alan_fergus OpenFOAM Bugs 2 January 15, 2008 07:38
problem in running FoamX in Open FOAM Gaurav Main CFD Forum 3 May 10, 2006 05:06
problem about installing FOAM linux freshman Main CFD Forum 6 November 4, 2004 11:59


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