Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[grids] bugfix for boundary handling in subgrid #359

Merged
merged 1 commit into from Feb 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pymor/grids/boundaryinfos.py
Expand Up @@ -39,7 +39,7 @@ def __init__(self, grid, indicators, assert_unique_type=None, assert_some_type=N
self.grid = grid
assert_unique_type = assert_unique_type if assert_unique_type else [1]
assert_some_type = assert_some_type if assert_some_type else []
self.boundary_types = indicators.keys()
self.boundary_types = frozenset(indicators.keys())
self._masks = {boundary_type: [np.zeros(grid.size(codim), dtype='bool') for codim in xrange(1, grid.dim + 1)]
for boundary_type in self.boundary_types}
for boundary_type, codims in self._masks.iteritems():
Expand Down