Skip to content

Fixes #461.#462

Merged
bgrant merged 5 commits into
masterfrom
bugfix/461
Jun 26, 2014
Merged

Fixes #461.#462
bgrant merged 5 commits into
masterfrom
bugfix/461

Conversation

@kwmsmith
Copy link
Copy Markdown
Contributor

Generalizes Distribution.is_compatible() to treat 'n' as compatible
with 'b', 'c', and 'n' when it makes sense to do so.

Closes #461

@kwmsmith kwmsmith added this to the 0.4 milestone Jun 24, 2014
@kwmsmith
Copy link
Copy Markdown
Contributor Author

@bgrant comment addressed.

@bgrant
Copy link
Copy Markdown
Contributor

bgrant commented Jun 26, 2014

Looks pretty good. How about a test where iscompatible returns False?

Kurt Smith added 5 commits June 26, 2014 14:16
Generalizes `Distribution.is_compatible()` to treat 'n' as compatible
with 'b', 'c', and 'n' when it makes sense to do so.
Test case added as well.  Now 'b' and 'c' are considered compatible if
they both have `proc_grid_size == 1` and equal `size`s.
Tests that block cyclic is compatible with block and cyclic when
proc_grid_size == 1 and sizes are equivalent.
Changes maps.Distribution -> Distribution.

Clean up formatting.
@kwmsmith
Copy link
Copy Markdown
Contributor Author

@bgrant test added.

@bgrant
Copy link
Copy Markdown
Contributor

bgrant commented Jun 26, 2014

LGTM. I'll merge once Travis finishes.

bgrant added a commit that referenced this pull request Jun 26, 2014
@bgrant bgrant merged commit 4d3ed05 into master Jun 26, 2014
@bgrant bgrant deleted the bugfix/461 branch June 26, 2014 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Distribution.is_compatible() should be more flexible with n dist_types

2 participants