|
[Sponsors] |
[OpenFOAM.org] OpenFOAM 5 source pack installation on Ubuntu 16.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 5, 2018, 14:02 |
|
#21 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: That means that MPICH is the default MPI toolbox. You will have to readjust the option "WM_MPLIB" in the files "etc/bashrc" and "etc/settings.sh".
Then start a new terminal and run Allwmake once again, as given in the installation instructions. |
|
June 6, 2018, 09:19 |
|
#22 |
New Member
Abilash Ananthula
Join Date: Sep 2017
Posts: 9
Rep Power: 9 |
Hi Bruno,
I have made the modification in "bashrc" file by setting "WM_MPLIB=MPICH". I am not sure about what modifications have to be done in "settings.sh" file but did some editing based on guess work (I am attaching the file here, please let me know what is the problem with it). With these changes being done, I could build the Paraview with success. When I tried to Allmake the OpenFoam the following error is shown. Code:
Installation complete for paraview-5.0.1 Now update the environment by running: wmRefresh --- Done administrator@admin-pc:~/OpenFOAM/ThirdParty-4.1$ wmRefresh administrator@admin-pc:~/OpenFOAM/ThirdParty-4.1$ cd $WM_PROJECT_DIR administrator@admin-pc:~/OpenFOAM/OpenFOAM-4.1$ export QT_SELECT=qt4 administrator@admin-pc:~/OpenFOAM/OpenFOAM-4.1$ ./Allwmake -j 4 Compiling enabled on 4 cores gcc -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -O3 -fPIC dirToString.c -o /home/administrator/OpenFOAM/OpenFOAM-4.1/wmake/platforms/linux64Gcc/dirToString flex wmkdep.l gcc -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -O3 -fPIC lex.yy.c -o /home/administrator/OpenFOAM/OpenFOAM-4.1/wmake/platforms/linux64Gcc/wmkdep lex.yy.c:1251:17: warning: ‘yyunput’ defined but not used [-Wunused-function] static void yyunput (int c, char * yy_bp ) ^ lex.yy.c:1294:16: warning: ‘input’ defined but not used [-Wunused-function] static int input (void) ^ ======================================== Start ThirdParty Allwmake ======================================== ======================================== Build MPI libraries if required + cd /home/administrator/OpenFOAM/ThirdParty-4.1/mpich2-1.1.1p1 /home/administrator/OpenFOAM/ThirdParty-4.1/Allwmake: 123: cd: can't cd to /home/administrator/OpenFOAM/ThirdParty-4.1/mpich2-1.1.1p1 + exit 1 Thanks Abilash |
|
June 6, 2018, 09:36 |
|
#23 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: Sorry, not enough time to give a detailed answer, but I forgot that the MPI settings are now configured in the file "etc/config.sh/mpi". Look for "MPICH" in that file and adjust the paths accordingly. Can be seen here: https://github.com/OpenFOAM/OpenFOAM...ig.sh/mpi#L123
Essentially "MPI_HOME" and "MPI_ARCH_PATH" should point to "/usr/local", if I'm not mistaken. |
|
June 6, 2018, 11:55 |
|
#24 |
New Member
Abilash Ananthula
Join Date: Sep 2017
Posts: 9
Rep Power: 9 |
Hi Bruno,
Thank you for all the help. Finally it is successfully installed and running (I linked MPI_HOME to the installed directory of mpich-3.3a2 (version in my system). The following are the modifications I made to the "etc/config.sh/mpi" file. MPICH) export FOAM_MPI=mpich-3.3a2 export MPI_HOME=/home/administrator/mpich-3.3a2 # export MPI_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$FOAM_MPI _foamAddPath /bin # 64-bit on OpenSuSE 12.1 uses lib64 others use lib _foamAddLib lib$WM_COMPILER_LIB_ARCH _foamAddLib lib _foamAddMan /share/man ;; Abilash Last edited by abilash; June 6, 2018 at 12:02. Reason: needed explanation |
|
|
|
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 |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 19:13 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 11:57 |
Source Pack Installation OpenFOAM Version 2.1.0 on Redhat Linux | Indrajit | OpenFOAM Installation | 1 | April 1, 2012 05:39 |