Skip to content

globalIndex gather of indirect list (contiguous data) fails

  • $FOAM_TUTORIALS/finiteArea/surfactantFoam/planeTransport
    • ./Allrun-parallel and inspect log.makeFaMesh.
    • runParallel makeFaMesh also fails.
  • HEAD: 809fc701.
  • The case runs with v2112 (HEAD: 14aeaf8d) and in serial mode.
  • Traceback:
Write finite area mesh.

[0] --> FOAM FATAL ERROR: (openfoam-2202 patch=220310)
[0] attempt to access element 0 from zero sized list

...

[0] #6  Foam::UList<char>::operator[](int) at ~/OpenFOAM/base/develop/src/OpenFOAM/lnInclude/UListI.H:302
[0] #7  Foam::UIPstreamBase::read(char&) at ~/OpenFOAM/base/develop/src/OpenFOAM/db/IOstreams/Pstreams/UIPstreamBase.C:409
[0] #8  Foam::UIPstreamBase::read(Foam::token&) at ~/OpenFOAM/base/develop/src/OpenFOAM/db/IOstreams/Pstreams/UIPstreamBase.C:25
1
[0] #9  Foam::token::token(Foam::Istream&) at ~/OpenFOAM/base/develop/src/OpenFOAM/db/IOstreams/token/tokenIO.C:128
[0] #10  Foam::UList<Foam::Vector<double> >::readList(Foam::Istream&) at ~/OpenFOAM/base/develop/src/OpenFOAM/lnInclude/UListIO.
C:168
[0] #11  Foam::Istream& Foam::operator>><Foam::Vector<double> >(Foam::Istream&, Foam::UList<Foam::Vector<double> >&) at ~/OpenFO
AM/base/develop/src/OpenFOAM/lnInclude/UList.H:610
[0] #12  void Foam::globalIndex::gather<Foam::Vector<double>, Foam::UList<int> >(Foam::UList<int> const&, int, Foam::UList<int> 
const&, Foam::IndirectListBase<Foam::Vector<double>, Foam::UList<int> > const&, Foam::List<Foam::Vector<double> >&, int, Foam::U
Pstream::commsTypes) at ~/OpenFOAM/base/develop/src/OpenFOAM/lnInclude/globalIndexTemplates.C:304
[0] #13  void Foam::globalIndex::gather<Foam::Vector<double>, Foam::UList<int> >(Foam::IndirectListBase<Foam::Vector<double>, Fo
am::UList<int> > const&, Foam::List<Foam::Vector<double> >&, int, Foam::UPstream::commsTypes, int) const at ~/OpenFOAM/base/deve
lop/src/OpenFOAM/lnInclude/globalIndexTemplates.C:395
[0] #14  Foam::faMeshReconstructor::calcAddressing(Foam::UList<int> const&) at ~/OpenFOAM/base/develop/src/parallel/reconstruct/
faReconstruct/faMeshReconstructor.C:240
[0] #15  Foam::faMeshReconstructor::faMeshReconstructor(Foam::faMesh const&) at ~/OpenFOAM/base/develop/src/parallel/reconstruct
/faReconstruct/faMeshReconstructor.C:570

...

@mark @Mattijs

Edited by Mark OLESEN