|
[Sponsors] |
[OpenFOAM.org] Source or executre startup file for OpenFOAM |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#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? |
|
![]() |
![]() |
![]() |
![]() |
#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. ... |
|
![]() |
![]() |
![]() |
![]() |
#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 |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Installation Problem with OF 6 version | Aurel | OpenFOAM Community Contributions | 14 | November 18, 2020 16:18 |
[Other] How to use finite area method in official OpenFOAM 2.2.0? | Detian Liu | OpenFOAM Meshing & Mesh Conversion | 4 | November 3, 2015 03:04 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 11:32 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 03:23 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 10:57 |