|
[Sponsors] |
[OpenFOAM.org] Source or executre startup file for OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 1, 2015, 12:43 |
Source or executre startup file for OpenFOAM
|
#1 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 |
The installation instructions on http://www.openfoam.org/download/ubuntu.php tell the user to add the following line at the bottom of ~/.bashrc:
Code:
source /opt/openfoam240/etc/bashrc Code:
. /opt/openfoam240/etc/bashrc Do both alternatives work the same? |
|
November 1, 2015, 13:45 |
|
#2 |
Senior Member
|
Hi,
Yes, there is difference between sourcing and executing but Code:
. /opt/openfoam240/etc/bashrc Code:
. filename [arguments] source filename [arguments] Read and execute commands from filename in the current shell environment and return the exit status of the last command executed from filename. ... |
|
November 2, 2015, 06:21 |
|
#3 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 |
Thank you, alexeym!
And sorry, a more attentive reading would have been enough. |
|
Tags |
bashrc, execute, source, startup |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Installation Problem with OF 6 version | Aurel | OpenFOAM Community Contributions | 14 | November 18, 2020 17:18 |
[Other] How to use finite area method in official OpenFOAM 2.2.0? | Detian Liu | OpenFOAM Meshing & Mesh Conversion | 4 | November 3, 2015 04:04 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 04:23 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 11:57 |