Skip to content

Rename barrier attr to _barrier and add barrier method - #9

Merged
rmjarvis merged 1 commit into
mainfrom
rename-barrier
May 28, 2026
Merged

rmjarvis merged 1 commit into
mainfrom
rename-barrier

Conversation

@joezuntz

@joezuntz joezuntz commented May 8, 2026

Copy link
Copy Markdown
Collaborator

The mock communicator class has an attribute called barrier which is used to implement the Comm.Barrier method.

But in mpi4py there is also a Comm.barrier method which is just an alias to Comm.Barrier. I confused myself briefly by trying the former name with mockmpi.

This PR renames the current barrier attribute to _barrier and adds a barrier method as an alias of Barrier

@rmjarvis
rmjarvis merged commit 512b032 into main May 28, 2026
4 checks passed
@rmjarvis
rmjarvis deleted the rename-barrier branch May 28, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants