-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix empty boundary of SimplexTopology
The constructor of `SimplexTopology` trips over assert numpy.greater(self.simplices[:, 1:], self.simplices[:, :-1]).all() if there are no simplices. This is triggered when taking the boundary of a fully periodic mesh. This patch fixes the problem by returning an `EmptyTopology` when the boundary is empty. In addition this patch adds a slightly improved error message when trying to create an empty `SimplexTopology.
- Loading branch information
1 parent
2c6c3e7
commit 41090cc
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters