CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 Installation

SU2 Installation error with mpich

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2024, 06:43
Default SU2 Installation error with mpich
  #1
Member
 
Ercan Umut
Join Date: Aug 2022
Posts: 51
Rep Power: 4
CleverBoy is on a distinguished road
Hello Everybody,

I am trying to use SU2 with mpich as SU2's webpage suggests. When configuring I am using the command below:

Code:
./meson.py build  -Denable-autodiff=true -Denable-pywrapper=true -Denable-mpp=true -Dwith-mpi=enabled -Dcustom-mpi=true -Dextra-deps=mpich -prefix=home/directory
and mpich is linked in my bash file as

Code:
export MPICC=/usr/bin/mpicc 
export MPICXX=/usr/bin/mpicxx
export CC=$MPICC
export CXX=$MPICXX
After the installation is completed, when I try to run a simulation I always get the following error:

Code:
Abort(70871301) on node 0: Fatal error in internal_Comm_rank: Invalid communicator, error stack:
internal_Comm_rank(30212): MPI_Comm_rank(comm=0x2feb8c20, rank=0x5bff1f33fc48) failed
internal_Comm_rank(30166): Invalid communicator
But if I use some default cc and c++ instead of mpich while compiling and use the same first command above for configuring I get no such error. mpirun works just fine that way.

The reason I am explaning this is I want to use Python Wrapper function so I can specify a custom inlet that comes with SU2v8.1. When I use regular cc and c++ for installation and do

Code:
import sys
import pysu2
import math
from mpi4py import MPI

def main():
  """
  Run the flow solver with a custom inlet (function of time and space).
  """
  
  comm = MPI.COMM_WORLD
  # comm = 0
.
.
.
for custom inlet python script it does not work and asks for mpi. Such as

Code:
Attempting to use an MPI routine (internal_Comm_rank) before initializing or after finalizing MPICH
How can I solve these series of problems? Am I missing something or is it this diffucult to use mpich? Because I run into different problems as well when I install mpich in a local directory. Would you recommend something else instead of mpich?

Last edited by CleverBoy; October 21, 2024 at 17:19.
CleverBoy is offline   Reply With Quote

Old   October 24, 2024, 12:29
Default
  #2
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 120
Rep Power: 6
Sakun is on a distinguished road
Hi,

I had pretty much your issue and then i have found this video. It is really straight forward to follow.

https://www.youtube.com/watch?v=SOh6...c2tYF&index=39

Hope this helps,
Sakun is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation error with SU2 - Adjoint cfd-jg SU2 Installation 0 December 18, 2023 07:55
SU2 v7.2.1 Installation error on macOS Catalina wertyfg SU2 Installation 0 January 17, 2022 15:37
Introducing SU2 International Developers Society (IDS) fpalacios SU2 News & Announcements 1 June 17, 2019 23:38
SU2 Installation on Windows 32 bit niddaas SU2 Installation 3 May 6, 2016 18:03
SU2 parallel installation error JAlbert SU2 Installation 2 November 19, 2013 03:43


All times are GMT -4. The time now is 21:29.