Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 381
    • Issues 381
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #2454
Closed
Open
Created May 04, 2022 by Kutalmış Berçin@kutiMaintainer

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

  • d00445ac

Possible fixes

Replace scalarNames_[i] with vectorNames_[i] in streamLineBase.C#L792.

Assignee
Assign to
Time tracking