Error at creating a mesh

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
herbk
Veteran
Posts: 2661
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Error at creating a mesh

Post by herbk »

Hi,
At trieng to generate a mesh i get the error mesage

Code: Select all

/opt/openfoam-1812/etc/config.sh/mpi: Zeile 53: mpicc: Kommando nicht gefunden.
gmshToFoam: error while loading shared libraries: libmpi.so.12: cannot open shared object file: No such file or directory
The file is availible, so i'm in mind, that FC is surching at a wrong path... Where it has to be? At my system it is at /usr/lib64/mpi/gcc/openmpi/lib64/
libmpi.so.12 is only a link to libmpi.so.12.0.7, - may be that's the problem?
Gruß Herbert
User avatar
oliveroxtoby
Posts: 840
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Error at creating a mesh

Post by oliveroxtoby »

herbk wrote: Sun Mar 10, 2019 7:19 pm Hi,
At trieng to generate a mesh i get the error mesage

Code: Select all

/opt/openfoam-1812/etc/config.sh/mpi: Zeile 53: mpicc: Kommando nicht gefunden.
gmshToFoam: error while loading shared libraries: libmpi.so.12: cannot open shared object file: No such file or directory
The file is availible, so i'm in mind, that FC is surching at a wrong path... Where it has to be? At my system it is at /usr/lib64/mpi/gcc/openmpi/lib64/
libmpi.so.12 is only a link to libmpi.so.12.0.7, - may be that's the problem?
On some systems the MPI libraries and executables are not added to the relevant paths when they are installed. On mine, I created a custom.sh file in /etc/profile.d containing the following:

Code: Select all

PATH=$PATH:/lib64/openmpi/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib64/openmpi/lib
I'm guessing for you it would have to be something like:

Code: Select all

PATH=$PATH:/usr/lib64/mpi/gcc/openmpi/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/mpi/gcc/openmpi/lib64
Note that this is more an issue with your MPI and OpenFOAM installation rather than FreeCAD and CfdOF per se. There should be information available for your version of Linux.
Please provide all the information requested in this post before reporting problems with CfdOF.
herbk
Veteran
Posts: 2661
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Error at creating a mesh

Post by herbk »

Hi Oliver,

thx for the info, i will try today evening..
oliveroxtoby wrote: Mon Mar 11, 2019 7:55 am Note that this is more an issue with your MPI and OpenFOAM installation rather than FreeCAD and CfdOF per se. There should be information available for your version of Linux.
Thats my mind to...

I'm setting up a new System with OpenSuse Leap 15.1. It's at beta state, but the conection FC - Openfoam seams to work better as at the before used Leap 42.3...
Gruß Herbert
herbk
Veteran
Posts: 2661
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Error at creating a mesh

Post by herbk »

Hi Oliver,
i still got the same error if i put in a "custom.sh" with the contend you are guessing.

But i noticed,, that there is a file "mpi-selector.sh" and a "mpi-selector.csh in /etc/profile.d. Both have the same contend:

Code: Select all

# Copyright (c) 2007 Cisco Systems, Inc.  All rights reserved.
#
# File installed for Bourne-shell startups to select which MPI
# installation to use.  Not using "alternatives" because we want to be
# able to set per-user level defaults, not just system-wide defaults.

mpi_selector_dir="/var/mpi-selector/data"
mpi_selector_homefile="$HOME/.mpi-selector"
mpi_selector_sysfile="/etc/sysconfig/mpi-selector"

mpi_selection=
if test -f "$mpi_selector_homefile"; then
    mpi_selection=`cat $mpi_selector_homefile`
elif test -f "$mpi_selector_sysfile"; then
    mpi_selection=`cat $mpi_selector_sysfile`
fi

if test "$mpi_selection" != "" -a -f "$mpi_selector_dir/$mpi_selection.sh"; then
    . "$mpi_selector_dir/$mpi_selection.sh"
fi

I will ask at a OpenSuse forum for it....
Gruß Herbert
Post Reply