CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Problem with openmpi

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

LinkBack Thread Tools Display Modes
Old   February 13, 2010, 12:50
Join Date: Apr 2009
Posts: 38
Rep Power: 10
PattiMichelle is on a distinguished road
Originally Posted by tomislav_maric View Post
Hello everyone, I'm glad I've found this thread, since I have the same problem holzmichel has ran into. searching on the net I've found the instructions that I should comment out the if command that returns from the bash if it's ran in non interactive mode.

actually, I'm running OpenFOAM from SLAX live DVD and I'm trying to figure out how to use this live DVD for simulations on a LAN.

the folowwing code suggested by olesen

ssh $HOST 'echo $PATH; echo; echo $LD_LIBRARY_PATH'
has showed me that LD_LIBRARY_PATH and PATH are not set at all when bash runs in non interactive mode. how exactly can I solve this?

Thank you in advance,
I run in OpenSuSE 11.1 and you have to edit the .bashrc file in your home directory to include these lines, so that every time a shell is started, they are run. (If you use csh you would use the .cshrc file, which I believe also works for the tcsh shell.) On OpenSuSE, the .bshrc exists by default. It's easy to edit if you're using KDE. The period "." at the beginning of the file name means it's hidden by default (because you don't edit it that much) when you do "ls" or some other file listing command. Just edit your .bashrc file in your home directory and add the LD_LIBRARY_PATH and PATH statements.
PattiMichelle is offline   Reply With Quote

Old   February 13, 2010, 18:41
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 281
Blog Entries: 5
Rep Power: 13
tomislav_maric is on a distinguished road

Hi. There is a record of this historical battle here:

I have printed out the environmental settings (env) to .ssh/environment and copied that file on the other computers on the LAN manually with ssh, worked like a charm. I guess you could write a script of some sort for a larger number of comps.

Of course, since it's liveCD the env is the same, otherwise, you would have to have identical instalations.

tomislav_maric is offline   Reply With Quote

Old   July 18, 2012, 14:26
Senior Member
Join Date: Mar 2009
Posts: 109
Rep Power: 10
ehsan is on a distinguished road
Dear All

I like to ask a question on running OF in parallel systems, we try it and put IP number and name of each machine in /etc/hosts to make systems connected, and additionally, we created a file named machines in each system in it we put the name of each desired to connect machines, but the "connection refused" error, indicating that machines could not be connected, is given by the system. The system could ping to each other w.o error.

ehsan is offline   Reply With Quote


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
Problems with Fedora 9 and OpenMPI harly OpenFOAM Running, Solving & CFD 11 May 3, 2009 04:18
SnappyHexMesh in parallel openmpi wikstrom OpenFOAM Mesh Utilities 7 November 24, 2008 10:52
Problems using local openmpi stephan OpenFOAM Installation 1 December 5, 2007 19:01
OpenMPI performance vega OpenFOAM Running, Solving & CFD 13 November 27, 2007 02:28
OpenFOAM 14 with OpenMPI 12 fhy OpenFOAM Installation 0 July 12, 2007 18:12

All times are GMT -4. The time now is 06:08.