|
[Sponsors] |
Open MPI 3 ignoring bashrc file on other hosts |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 25, 2018, 17:00 |
Open MPI 3 ignoring bashrc file on other hosts
|
#1 |
New Member
Faraz
Join Date: Mar 2018
Posts: 25
Rep Power: 8 |
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. |
|
|
|
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 |