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

commsType in foam-extend 3.2?

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 4 Post By Phicau

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2015, 08:54
Default commsType in foam-extend 3.2?
  #1
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Dear all,

I finally spared some time to install foam-extend 3.2 and test IHFOAM in it. Happily enough, everything compiles out of the box without any changes from previous versions.

I also encountered the same problems as in versions 3.0 and 3.1: running in parallel fails due to commsType being set to blocking. (See http://sourceforge.net/p/openfoam-ex...swak4foam/123/ ). The solution that I have been using until now is the one outlined here: https://openfoamwiki.net/index.php/C...orted_Versions

Basically, changing in the commsType in $WM_PROJECT_DIR/etc/controlDict by nonBlocking, used to make the trick. However, in version 3.2, controlDict has been replaced by controlDict-EXAMPLE. Changing the value there, does not work, copying the file over and naming it controlDict does not work either.

Any solutions to set commsType in 3.2?

Thanks!

Pablo
Phicau is offline   Reply With Quote

Old   October 6, 2015, 12:49
Default
  #2
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Updates:

I've traced the problem back to foam-extend-3.2/src/foam/db/IOstreams/Pstreams/Pstream.C, where the way that commsType is set has changed:

Code:
// Default commsType
// Foam::Pstream::commsTypes Foam::Pstream::defaultCommsType
// (
//     commsTypeNames
//     [
//         debug::optimisationSwitches().lookupOrAddDefault
//         (
//             "commsType",
//             word("blocking")
//         )
//     ]
// );


const Foam::debug::optimisationSwitch
Foam::Pstream::defaultCommsType
(
    "commsType",
//     "nonBlocking",
//     "scheduled",
    "blocking",
    "blocking, nonBlocking, scheduled"
);
The solution to select a different type of commsType is including the following text in the controlDict file of your case:

Code:
OptimisationSwitches
{
    commsType       nonBlocking;
}
I will soon update IHFOAM's tutorials to reflect this change.

Best,

Pablo
utkunun, serles, ilhado and 1 others like this.
Phicau is offline   Reply With Quote

Old   November 15, 2017, 05:41
Default changing commsType to 'nonBlocking'
  #3
Member
 
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 12
Thamali is on a distinguished road
Hi,
I know this is a little bit old thread,but I had the same problem.

I got the follwong error during parallel running of a case of simpleIbFoam.
Code:
Fatal error in MPI_Recv: Message truncated, error stack:
MPI_Recv(224).....................: MPI_Recv(buf=0x7ffd39a14590, count=24, MPI_PACKED, src=0, tag=1, MPI_COMM_WORLD, status=0x7ffd39a144f0) failed
MPIDI_CH3U_Receive_data_found(131): Message from rank 0 and tag 1 truncated; 16992 bytes received but buffer size is 24
I tried the following in my case file and it didn't work for me.
Code:
OptimisationSwitches
{
    commsType       nonBlocking;
}
Any idea why it doesn't work?

Thank in advance.
Thamali
Thamali 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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


All times are GMT -4. The time now is 01:05.