View Issue Details

IDProjectCategoryView StatusLast Update
0002055OpenFOAM[All Projects] Bugpublic2016-04-16 13:27
ReporterwyldckatAssigned Tohenry 
Status resolvedResolutionfixed 
Product Versiondev 
Fixed in Version 
Summary0002055: UPstream::allToAll problem when building with Int64
DescriptionBack in issue #2044 the implemented fix for the call to the older "MPI_Alltoall" implementations, fails when building with Int64.

If I'm not mistaken, the correct type cast should be:


Attached is the file "UPstream.C" to replace "src/Pstream/mpi/UPstream.C".
Steps To ReproduceBuild with Int64 and you'll get this message:

    UPstream.C: In static member function ‘static void Foam::UPstream::allToAll(const labelUList&, Foam::labelUList&, Foam::label)’:
    UPstream.C:329:50: error: invalid const_cast from type ‘Foam::UList<long int>::const_iterator {aka const long int*}’ to type ‘int*’
TagsNo tags attached.



2016-04-16 12:46


UPstream.C (17,430 bytes)


2016-04-16 13:27

manager   ~0006126

Thanks Bruno, resolved by commit d02e0aa05f76cd3a26cbd794a2f6c67719034d29

Issue History

Date Modified Username Field Change
2016-04-16 12:46 wyldckat New Issue
2016-04-16 12:46 wyldckat Status new => assigned
2016-04-16 12:46 wyldckat Assigned To => henry
2016-04-16 12:46 wyldckat File Added: UPstream.C
2016-04-16 13:27 henry Note Added: 0006126
2016-04-16 13:27 henry Status assigned => resolved
2016-04-16 13:27 henry Resolution open => fixed