Skip to content
Snippets Groups Projects

Free sort indices and task arrays before repartitioning

Merged Peter W. Draper requested to merge free-sorts into master

Freeing the sort indices and tasks arrays before repartitioning makes that memory available so that we have more room for accepting particles from other nodes.

Part of #98 (closed).

Also adds a useful debug function that reports the current memory usage of the process tree (i.e. call from main thread to get all usage). Same numbers you get out of the top program.

Free the task arrays and cells are refactored into simple functions to cut down on cut and paste.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Peter W. Draper Added 2 commits:

    Added 2 commits:

    • cdf04591 - Squash error about unused return value
    • 888f5c2a - Also free the tasks in space_regrid before partitioning.
  • Updated to also free the tasks before a repartition caused by an increase in h. Wrapped up a lot of repeated code into some simple functions.

  • Reassigned to @pdraper

  • Peter W. Draper Status changed to merged

    Status changed to merged

  • Peter W. Draper mentioned in commit e2650d1d

    mentioned in commit e2650d1d

  • Thanks, I've accepted.

  • Please register or sign in to reply
    Loading