|
[Sponsors] |
Two OpenFOAM installations in parallel? (DP + SP) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 1, 2011, 17:29 |
Two OpenFOAM installations in parallel? (DP + SP)
|
#1 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22 |
Hello,
I've OpenFOAM with double precision installed as recommended in /home/user/OpenFOAM. I need a single precision installation as well (with some add-ons) - the plan is to build/install it in /home/user/OpenFOAMSP I don't want to spoil the existing double precision installation. Are the following steps suficient to avoid problems? 1. Add . $HOME/OpenFOAMSP/OpenFOAM-1.7.x/etc/bashrc to $HOME/.bashrc 2. Change FOAM_INST_DIR to /home/user/OpenFOAMSP and $WM_PROJECT_DIR to /home/user/OpenFOAMSP/OpenFOAM-1.7.x Klaus |
|
May 2, 2011, 03:11 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
I think sourcing both /bashrc files in ~/.bashrc will cause problems.
If you put it like this Code:
alias startFoam='source $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc' alias startFoamSP='source $HOME/OpenFOAM/OpenFOAM-1.7.xSP/etc/bashrc' Best way to change the install, is to change the variable foamInstall in bashrc. Furthermore, you probably don't recompile the ThirdParty software, so you have that variable in you bashrc as well. |
|
May 2, 2011, 04:04 |
|
#3 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
I don't see why you'd want or need to have a separate installation directory. There is absolutely no problem having different compiler/precision combinations in the same FOAM_INST_DIR. The only thing you need to do is have the correct variables set. For a "once-of", simply use the "wmSP" or "wmDP" aliases set the corresponding variables. For a more permanent switch, the easiest is to simpy copy the etc/bashrc. For example, Code:
cp etc/bashrc etc/bashrc-sp cp etc/bashrc etc/bashrc-dp You can use the same idea if you are using a different compiler (type or version). |
||
May 2, 2011, 04:08 |
|
#4 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
Good point, what I posted can be used if you want to keep different version of OpenFOAM seperate (e.g. 1.6-ext and 1.7)
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Large test case for running OpenFoam in parallel | fhy | OpenFOAM Running, Solving & CFD | 23 | April 6, 2019 10:55 |
OpenFoam parallel scalability | hpc_benchmark | OpenFOAM Running, Solving & CFD | 26 | October 30, 2012 06:29 |
Parallel cluster solving with OpenFoam? P2P Cluster? | hornig | OpenFOAM Programming & Development | 8 | December 5, 2010 17:06 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |
OpenFOAM Training and Workshop Zagreb 2628Jan2006 | hjasak | OpenFOAM | 1 | February 2, 2006 22:07 |