Skip to content
GitLab
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 421
    • Issues 421
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #1617
Closed
Open
Issue created Mar 03, 2020 by Andrew Heather@andyOwner

BUG: circular call to write for gradientEnergyFvPatchScalarField.C

In the virtual ::write(Ostream& os) function the call to

os.writeEntry("value", *this)

uses the field << operator to write the value field, which in turn (via fvPatchField) calls the ::write(Ostream&) function again and gets locked in an infinite loop.

Current remedy: fields cannot be written to stream using the os.writeEntry(<name>, <field>) form---instead use <field>.writeEntry(<name>, os). For the future, look to update the Ostream::writeEntry function.

Note: need to check other boundary condition ::write(Ostream&) functions

bug

Assignee
Assign to
Time tracking