View Issue Details

IDProjectCategoryView StatusLast Update
0001873OpenFOAM[All Projects] Bugpublic2015-10-21 13:13
ReporterAndreasGAssigned Tohenry 
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSUbuntuOS Version14.04
Product Versiondev 
Fixed in Version 
Summary0001873: parallel sync fails
DescriptionExecution of Foam::globalMeshData::updateMesh() fails with index out of range, e.g.
--> FOAM FATAL ERROR:
index 1 out of range 0 ... 0

    From function UList<T>::checkIndex(const label)
    in file /usr/local/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/UListI.H at line 109.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at /usr/local/OpenFOAM/OpenFOAM-dev/src/OSspecific/POSIX/printStack.C:218
#1 Foam::error::abort() at /usr/local/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/error.C:249
#2 Foam::Ostream& Foam::operator<< <Foam::error>(Foam::Ostream&, Foam::errorManip<Foam::error>) at /usr/local/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/errorManip.H:85 (discriminator 4)
#3 Foam::UList<Foam::List<int> >::checkIndex(int) const at /usr/local/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/UListI.H:109
#4 Foam::UList<Foam::List<int> >::operator[](int) at /usr/local/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/UListI.H:168
#5 Foam::UPstream::nProcs(int) at /usr/local/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/UPstream.H:389
#6 int Foam::returnReduce<int, Foam::sumOp<int> >(int const&, Foam::sumOp<int> const&, int, int) at /usr/local/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/PstreamReduceOps.H:95
#7 Foam::globalMeshData::updateMesh() at /usr/local/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/meshes/polyMesh/globalMeshData/globalMeshData.C:2760
#8 Foam::globalMeshData::globalMeshData(Foam::polyMesh const&) at /usr/local/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/meshes/polyMesh/globalMeshData/globalMeshData.C:1762
#9 Foam::polyMesh::globalData() const at /usr/local/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/meshes/polyMesh/polyMesh.C:1211 (discriminator 2)
#10 Foam::fvMeshLduAddressing::fvMeshLduAddressing(Foam::fvMesh const&) at /usr/local/OpenFOAM/OpenFOAM-dev/src/finiteVolume/fvMesh/fvMeshLduAddressing.H:96 (discriminator 7)
#11 Foam::fvMesh::lduAddr() const at /usr/local/OpenFOAM/OpenFOAM-dev/src/finiteVolume/fvMesh/fvMesh.C:562 (discriminator 2)
#12 Foam::fvMesh::owner() const at /usr/local/OpenFOAM/OpenFOAM-dev/src/finiteVolume/lnInclude/fvMesh.H:285
#13 Foam::surfaceInterpolation::makeWeights() const at /usr/local/OpenFOAM/OpenFOAM-dev/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolation/surfaceInterpolation.C:165 (discriminator 10)
#14 Foam::surfaceInterpolation::weights() const at /usr/local/OpenFOAM/OpenFOAM-dev/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolation/surfaceInterpolation.C:84
#15 Foam::tmp<Foam::GeometricField<Foam::Vector<double>, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::linearInterpolate<Foam::Vector<double> >(Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&) at /usr/local/OpenFOAM/OpenFOAM-dev/src/finiteVolume/lnInclude/linear.H:114
#16 ? at /usr/local/OpenFOAM/OpenFOAM-dev/src/finiteVolume/lnInclude/createPhi.H:49 (discriminator 2)
#17 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#18 ? at ??:?
Steps To Reproducetry to run tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/
Additional InformationOF-dev git commit 2c46bf1554a1d5e581d5ebcaa4516359bdc6bdf0
TagsNo tags attached.

Relationships

related to 0001780 resolvedhenry Problem with fvMeshDistribute when using alphaContactAngle 

Activities

AndreasG

2015-10-20 05:10

reporter   ~0005441

Last edited: 2015-10-20 05:37

View 2 revisions

Please note:
After some testing I found out, that this bug is only reproducible, when OpenFOAM is build with WM_COMPILE_OPTION set to Debug

Furthermore this may be to be related to this hack?!

$WM_PROJECT_DIR/src/OpenFOAM/meshes/polyMesh/globalMeshData/globalMeshData.C 2749ff:
2749 // *** Temporary hack to avoid problems with overlapping communication
2750 // *** between these reductions and the calculation of deltaCoeffs
2751 label comm = UPstream::worldComm + 1;
2752
2753 // Total number of faces.
2754 nTotalFaces_ = returnReduce
2755 (
2756 mesh_.nFaces(),
2757 sumOp<label>(),
2758 Pstream::msgType(),
2759 comm
2760 );

henry

2015-10-20 07:38

manager   ~0005442

Yes, I haven't had time to look into this further. I will complete this soon.

henry

2015-10-21 13:12

manager   ~0005453

Resolved by commit 1da3d4aa6f9572bf43d027b54830317fd9189d1c in OpenFOAM-2.4.x
Resolved by commit e64a8929a6483af1311c0b6853d912adff72532b in OpenFOAM-dev

Issue History

Date Modified Username Field Change
2015-10-19 22:42 AndreasG New Issue
2015-10-20 05:10 AndreasG Note Added: 0005441
2015-10-20 05:37 AndreasG Note Edited: 0005441 View Revisions
2015-10-20 07:38 henry Note Added: 0005442
2015-10-20 10:28 wyldckat Relationship added related to 0001780
2015-10-21 13:12 henry Note Added: 0005453
2015-10-21 13:12 henry Status new => resolved
2015-10-21 13:12 henry Resolution open => fixed
2015-10-21 13:12 henry Assigned To => henry