CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [foam-extend.org] Debian Testing working with foam-extend-4.1 (https://www.cfd-online.com/Forums/openfoam-installation/235070-debian-testing-working-foam-extend-4-1-a.html)

brett1 March 30, 2021 22:05

Debian Testing working with foam-extend-4.1
 
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

After getting the source from Git (mostly followed this: https://openfoamwiki.net/index.php/I...oam-extend-4.1 with the following prefs.sh modification), I copied /etc/prefs.sh-Example to /etc/prefs.sh and commented out all lines pertaining to hwloc and openmpi.

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`"

and
Code:

# System installed hwloc
export HWLOC_SYSTEM=1
export HWLOC_DIR=$WM_PROJECT_DIR
export HWLOC_BIN_DIR=$HWLOC_DIR/bin

to the /etc/prefs.sh file.

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,

as I did not quickly find a way to change where it looked.

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!


All times are GMT -4. The time now is 15:07.