CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   commsType in foam-extend 3.2? (https://www.cfd-online.com/Forums/openfoam-programming-development/160288-commstype-foam-extend-3-2-a.html)

Phicau October 5, 2015 08:54

commsType in foam-extend 3.2?
 
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 October 6, 2015 12:49

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

Thamali November 15, 2017 05:41

changing commsType to 'nonBlocking'
 
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


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