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 442
    • Issues 442
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #2533
Closed
Open
Issue created Jul 11, 2022 by Saeed@salehi

changeDictionary does not work in parallel with collated I/O system

Summary

changeDictionary does not work in parallel with collated I/O format. In my humble opinion, this should be fixed because the collated format is much more preferable, especially when working with clusters with large number of cores. Usually, there are limitations on clusters with the number of files, and thus collated format is much more effective.

Steps to reproduce

decompose any case you would like in collated format (-fileHandler collated) and then setup an arbitrary changeDictionaryDict and run the utility in parallel, for instance,:

mpirun -np 2 changeDictionary -parallel -fileHandler collated

You will be able to see that the target file is manipulated incorrectly. Although the collated system should write all the processors' information in one file, after running changeDictionary it seems that only one processor's info will remain in the target file.

Example case

The attached test case is a minimal example that shows the problem. The "Allrun" runs fine but "AllrunCollated" throws an error. cavityTable.tar.gz

Environment information

  • OpenFOAM version : OpenFOAM-v2112
  • Operating system : Ubuntu 18.04, CentOS-7
  • Hardware info : Dell PC, A cluster (more info at https://www.nsc.liu.se/systems/tetralith/)
  • Compiler : Gcc, Icc
Assignee
Assign to
Time tracking