|
[Sponsors] | |||||
[foam-extend.org] Debian Testing working with foam-extend-4.1 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
bret
Join Date: May 2019
Posts: 7
Rep Power: 8 ![]() |
I wanted to post these working installation instructions just because they were not on this list, https://openfoamwiki.net/index.php/Installation/Linux and I couldn't figure out how to add a page as of yet. I did VERY little to the two instruction pages linked in the following.
My Debian Testing already had system-installed hwloc and openmpi and it is current as of March 30, 2021. Paraview was treated the same way as in the linked article. A little about it; Code:
2099|1|X@X ~/foam/foam-extend-4.1/tutorials/multiphase/interFoam/laminar/damBreakFine $ Tue 30 03 2021, 18:07:24
uname -a
Linux X 5.10.0-4-amd64 #1 SMP Debian 5.10.19-1 (2021-03-02) x86_64 GNU/Linux
2100|1|X@X ~/foam/foam-extend-4.1/tutorials/multiphase/interFoam/laminar/damBreakFine $ Tue 30 03 2021, 19:52:13
2109|1|X@X ~/foam/foam-extend-4.1/tutorials/multiphase/interFoam/laminar/damBreakFine $ Tue 30 03 2021, 20:01:42
sudo apt-cache policy hwloc openmpi-bin
hwloc:
Installed: 2.4.1+dfsg-1
Candidate: 2.4.1+dfsg-1
Version table:
*** 2.4.1+dfsg-1 900
900 http://deb.debian.org/debian testing/main amd64 Packages
100 /var/lib/dpkg/status
1.11.12-3 500
500 http://http.us.debian.org/debian stable/main amd64 Packages
openmpi-bin:
Installed: 4.1.0-8
Candidate: 4.1.0-8
Version table:
*** 4.1.0-8 900
900 http://deb.debian.org/debian testing/main amd64 Packages
100 /var/lib/dpkg/status
3.1.3-11 500
500 http://http.us.debian.org/debian stable/main amd64 Packages
I then added these lines, from here: https://proteusmaster.urcf.drexel.edu/urcfwiki/index.php?title=Compiling_foam-extend&mobileaction=toggle_view_desktop#Open_MPI, Code:
# Specify system openmpi # ~~~~~~~~~~~~~~~~~~~~~~ # # Normally, you don't need to set more than these 3 env. variables # The other openmpi related variables will be initialized using # the command mpicc --showme: # export WM_MPLIB=SYSTEMOPENMPI export OPENMPI_DIR=$WM_PROJECT_DIR export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin # export OPENMPI_LIB_DIR="`$OPENMPI_BIN_DIR/mpicc --showme:libdirs`" export OPENMPI_INCLUDE_DIR="`$OPENMPI_BIN_DIR/mpicc --showme:incdirs`" export OPENMPI_COMPILE_FLAGS="`$OPENMPI_BIN_DIR/mpicc --showme:compile`" export OPENMPI_LINK_FLAGS="`$OPENMPI_BIN_DIR/mpicc --showme:link`" Code:
# System installed hwloc export HWLOC_SYSTEM=1 export HWLOC_DIR=$WM_PROJECT_DIR export HWLOC_BIN_DIR=$HWLOC_DIR/bin Then, after Allwmake.firstInstall complaining about not finding openmpi, I realized I didn't have the appropriate folder structure where it was looking for mpicc-wrapper-data.txt. It expected it in (for default?) ~/foam/foam-extend-4.1/share/openmpi/ so I just made a symbolic link, e.g., Code:
ln -s /usr/share/openmpi/mpicc-wrapper-data.txt mpicc-wrapper-data.txt, Anyway, after sourcing the file and running Allwmake.firstInstall, I could then successfully run all 3 (parallel too) examples in the Guide.pdf. If this should be deleted and not posted here I can do that too. Thanks all for help in the past! |
|
|
|
|
|
![]() |
| Tags |
| debian, foam-extend-4.1, openmpi 4 |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [foam-extend.org] Docker Container for Foam Extend 4.1 | illuminati5288 | OpenFOAM Installation | 2 | May 30, 2020 10:42 |
| [foam-extend.org] Installing Foam Extend 4.0 on Linux Mint | andysuth | OpenFOAM Installation | 1 | May 11, 2019 09:37 |
| Block coupling three equations using foam extend 4.1 | ELwardi | OpenFOAM Programming & Development | 2 | March 19, 2019 11:35 |
| channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
| [Gmsh] Import problem | ARC | OpenFOAM Meshing & Mesh Conversion | 0 | February 27, 2010 11:56 |