CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Open MPI 3 ignoring bashrc file on other hosts

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 25, 2018, 17:00
Default Open MPI 3 ignoring bashrc file on other hosts
  #1
New Member
 
Faraz
Join Date: Mar 2018
Posts: 23
Rep Power: 8
feacluster is on a distinguished road
I am running into a strange issue where my local bashrc file on my slave hosts is getting ignored. I did a local installation of Openfoam 17.2 and put in my bashrc file this line:

source ~/OpenFOAM-v1712/etc/bashrc

When I run:

mpirun -np 2 -hostfile machinefile hostname

The output is:

winc12
winc11

This shows mpirun is working as I expect.

But when I do:

mpirun -np 2 -hostfile machinefile which snappyHexMesh

I get:

/opt/software/amd64/OpenFOAM/OpenFOAM-4.1.0/platforms/linux64GccDPInt32Opt/bin/snappyHexMesh
/pmusers/user/OpenFOAM-v1712/platforms/linux64GccDPInt32Opt/bin/snappyHexMesh

Seems winc12 is not sourcing my .bashrc file. So the default openfoam 4.1 is getting picked up from the global bashrc profile. Any idea on a workaround? I would rather not have to pass every environment variable manually in the mpirun command.
feacluster is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X gschaider OpenFOAM Installation 136 October 10, 2017 18:25
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 11:03
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 06:18
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46


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