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/)
-   -   bashrc file and source bashrc position for cluster (https://www.cfd-online.com/Forums/openfoam-solving/215352-bashrc-file-source-bashrc-position-cluster.html)

Astan March 2, 2019 06:46

bashrc file and source bashrc position for cluster
 
Hi guys, I wanted to kindly ask for information.
I recently built a 2-node cluster, using nfs.
To use the cluster (with ubuntu) I had to insert the row
"source / opt / openfoam6 / etc / bashrc"
At the beginning of the ~ / .bashrc file and not at the end, (as written in the tutorial).

By doing this, after logging in, I get an error saying that some openfoam files have not been read correctly (but by doing this the simulation starts correctly).

If instead I follow the tutorial and insert "source / opt / openfoam6 / etc / bashrc"
at the end of the ./bashrc file, no error appears at login, but the simulation on the cluster does not start (an error appears).

How could I solve the problem?

Astan


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