Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 395
    • Issues 395
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #2156

Closed
Open
Created Jul 11, 2021 by Louis@louisgag

waveMethod called from inverseDistanceCellCellStencil returns error for empty source processors

Summary

inverseDistanceCellCellStencil calls waveMethod::calculate(tgtMesh, srcMesh, tgtToSrcAddr) which then calls

        FaceCellWave<meshToMeshData, meshToMeshData::trackData> calc
        (
            src,
            changedFaces,
            changedFacesInfo,
            faceData,
            cellData,
            src.globalData().nTotalCells(),   // max iterations
            td
        );

which will return an error when src.globalData().nTotalCells() is 0. A solution is to add 1 (works for me) or maybe, more logical, make a max(1,src.globalData().nTotalCells())

What is the current bug behaviour?

returns error

Maximum number of iterations reached. Increase maxIter.

What is the expected correct behavior?

overset runs

Environment information

I think hierarchical is particularly sensible to this issue.

Possible fixes

mentioned above

PS: I'm not sure I can get this error for the "standard" code, as I haven't tested if empty src is possible. I'm using a modified B-box inverseDistance scheme...

Edited Jul 12, 2021 by Louis
Assignee
Assign to
Time tracking