BUG: streamLineBase: attempt to access element 0 from zero sized list
Summary
In streamLineBase.C#L792
, scalarNames_
has zero-size, but it was attempted to access element 0 via scalarNames_[i]
.
Steps to reproduce
$FOAM_TUTORIALS/heatTransfer/buoyantBoussinesqPimpleFoam/BenardCells
What is the current bug behaviour?
--> FOAM FATAL ERROR: (openfoam-2202 patch=220310)
attempt to access element 0 from zero sized list
From void Foam::UList<Foam::word>::checkIndex(const Foam::label) const [T = Foam::word]
in file /home/pikachu2/kuti/OpenFOAM/base/develop/src/OpenFOAM/lnInclude/UListI.H at line 163.
...
#7 Foam::functionObjects::streamLineBase::writeToFile() at ~/OpenFOAM/base/develop/src/functionObjects/field/streamLine/streamLineBase.C:792
...
Environment information
Possible fixes
Replace scalarNames_[i]
with vectorNames_[i]
in streamLineBase.C#L792
.