CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Problem with openmpi (https://www.cfd-online.com/Forums/openfoam-solving/59029-problem-openmpi.html)

PattiMichelle February 13, 2010 11:50

Quote:

Originally Posted by tomislav_maric (Post 224967)
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

Code:

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,
Tomislav

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.

tomislav_maric February 13, 2010 17:41

@PattiMichelle

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

http://www.slax.org/forum.php?action...98#postid44098

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. :D

Godspeed,
Tomislav

ehsan July 18, 2012 14:26

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.

Regards


All times are GMT -4. The time now is 01:54.