From 236cc694702d1d0c78fffa461af56937d60d8848 Mon Sep 17 00:00:00 2001 From: Alex Fikl Date: Thu, 10 May 2018 22:04:06 -0500 Subject: [PATCH] mesh: fix is_conforming equality check --- meshmode/mesh/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meshmode/mesh/__init__.py b/meshmode/mesh/__init__.py index 89e97a13..1f642bb0 100644 --- a/meshmode/mesh/__init__.py +++ b/meshmode/mesh/__init__.py @@ -606,7 +606,7 @@ class Mesh(Record): # }}} - if is_conforming is not True: + if not is_conforming: if nodal_adjacency is None: nodal_adjacency = False if facial_adjacency_groups is None: @@ -720,7 +720,7 @@ class Mesh(Record): raise DataUnavailable("nodal_adjacency") elif self._nodal_adjacency is None: - if self.is_conforming is not True: + if not self.is_conforming: from meshmode import DataUnavailable raise DataUnavailable("nodal_adjacency can only " "be computed for known-conforming meshes") @@ -743,7 +743,7 @@ class Mesh(Record): raise DataUnavailable("facial_adjacency_groups") elif self._facial_adjacency_groups is None: - if self.is_conforming is not True: + if not self.is_conforming: from meshmode import DataUnavailable raise DataUnavailable("facial_adjacency_groups can only " "be computed for known-conforming meshes") -- GitLab