CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

MPI problem when using snappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2017, 15:59
Default MPI problem when using snappyHexMesh
  #1
New Member
 
Mohamed Mousa
Join Date: Nov 2016
Posts: 14
Rep Power: 9
Mohamed Mousa is on a distinguished road
Dear all,

I'm trying to generate a mesh for a vehicle for external aero by using snappyHexMesh.

I'm using scotch method for the domain decomposition (also tried simple) and I'm getting these lines (photo attached) before starting mesh generation.

I entered the file mentioned (btl_tcp_component.c). But I couldn't understand why I got a problem.

Code:
if(bind(sd, (struct sockaddr*)&inaddr, addrlen) < 0) {
                if( (EADDRINUSE == opal_socket_errno) || (EADDRNOTAVAIL == opal_socket_errno) ) {
                    continue;
                }
                BTL_ERROR(("bind() failed: %s (%d)",
                          strerror(opal_socket_errno), opal_socket_errno));
                CLOSE_THE_SOCKET(sd);
                return OMPI_ERROR;
            }
            goto socket_binded;
I would appreciate it if someone can help me

Thanks in advance
Attached Images
File Type: png snappyHexMesh error.png (118.2 KB, 32 views)
Mohamed Mousa is offline   Reply With Quote

Old   August 22, 2017, 01:44
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 15
clapointe is on a distinguished road
Have you checked out this tutorial? It also runs snappyHex in parallel.

https://github.com/OpenFOAM/OpenFOAM...torBike/Allrun

Caelan
clapointe is offline   Reply With Quote

Old   September 4, 2017, 05:31
Default
  #3
Senior Member
 
Join Date: Jan 2014
Posts: 179
Rep Power: 12
hxaxtma is on a distinguished road
1) It seems to be that you are missing the rights to bind a port. Check your rights of openmpi.
2) Check a simple snappyHexMesh Tutorial in parallel: if it si not working
3) recompile openmpi
hxaxtma is offline   Reply With Quote

Old   September 17, 2017, 12:45
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: To make it easier for search engines to find this question, please provide the error message in text... the main error reported several times was this:
Code:
[...] bind() failed: Permission denied [...]
Given that mpirun was launched with "-n 72", my guess is that Open-MPI or whichever MPI toolbox being used tried to bind the applications to each available core on the current machine (because no machine file with a list of machines) was given. This means that if the current machine only has 4 cores, then the remaining 68 bind attempts will fail, because there are only 4 successful ones, 1 per core.

How to use more than one machine? Read this: https://www.open-mpi.org/faq/?catego...-host-problems
KHIZAR SIDDIQUE likes this.
__________________
wyldckat 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
[snappyHexMesh] SnappyHexMesh Parallel run - face ordering problem DaveR OpenFOAM Meshing & Mesh Conversion 8 November 9, 2016 11:53
[snappyHexMesh] snappyHexMesh: problem meshing baffle (surface with zero thickness) julien.decharentenay OpenFOAM Meshing & Mesh Conversion 7 June 16, 2012 09:12
[snappyHexMesh] processorWeights problem with snappyhexmesh in parallel oskar OpenFOAM Meshing & Mesh Conversion 0 July 7, 2011 11:05
Problem with MPI? cwang5 OpenFOAM Running, Solving & CFD 3 July 12, 2010 11:38
Is Testsuite on the way or not lakeat OpenFOAM Installation 6 April 28, 2008 12:12


All times are GMT -4. The time now is 10:48.