Installing OpenFOAM with MPICH
Hello!
I am trying to install with mpich3.2 in CentOS7. I made couple of changes in the root folder. In etc/bashrc, I have changed the following Code:
export WM_MPLIB=MPICH Code:
MPICH) Code:
/home/D/foam/OpenFOAM-v1812/src/OpenFOAM/lnInclude/IOobject.H:497:14: note: because ‘Foam::IOobject’ has user-provided ‘void Foam::IOobject::operator=(const Foam::IOobject&)’ I would like to know if I need to change anything else apart from these values. Thanks for your time. |
Hmmm.. let's issue a ticket in the issue tracker in GitLab.
Any further information you can provide regarding your compilation? |
Thanks for the reply!
Let me know the information will be required and helpful to identify the error? I have used GCC 9 and MPICH 3.2 for compilation. |
I assume you've downloaded the mp* package into the ThirdParty dir?
|
One workaround
I have run into the same problem but I have figured it out on Ubuntu 18.04. But I bet it will work on Centos 8 as well. Here is what I propose, you may want to install Openmpi alongside with the MPICH compiled from source. And once you got a way to switch back and forth, Problem solved! I suggest using "bash", which is a way to edit your ~/.bashrc or ~/.profile.
Add following lines to .bashrc ## switch between mpich and openmpi use_mpi () { shopt -s nocaematch case "$1" in mpich) export PATH=/home/to/your/MPICH/bin:$PATH openmpi) export PATH=/usr/bin:$PATH ;; *) return 1 ;; esac shopt -u nocasematch } After adding those lines, type 1. "source ~/.bashrc" to activate the commands; 2. "use_mpi mpich" will allow you to use mpich in the current terminal; 3. "use_mpi openmpi" will allow you to use openmpi. Then you can handle different versions of MPI on your system (not limited to two, could be three, four, ..., etc) . I feel this is more elegant other than messing with OpenFoam source code before you are an advanced user. Hope this will help you. |
Quote:
No! I built the package directly as I needed the newer version. I was able to install OpenFOAM with IntelMPI. Thanks for your concern! |
Quote:
I was able to install OpenFOAM with IntelMPI. Thanks for your help! Will try and get back to you. |
All times are GMT -4. The time now is 22:44. |