diff --git a/grudge/eager.py b/grudge/eager.py index a1385685eabce917c75cfe2f49d379000ef33333..566f3cd1ab6acd8f078e878500bcd27ca3651825 100644 --- a/grudge/eager.py +++ b/grudge/eager.py @@ -174,7 +174,9 @@ class EagerDGDiscretization(DGDiscretizationWithBoundaries): self.norm(vec[idx])**2 for idx in np.ndindex(vec.shape))**0.5 elif p == np.inf: - return max(self.norm(vec[idx]) for idx in np.ndindex(vec.shape)) + return max( + self.norm(vec[idx], np.inf) + for idx in np.ndindex(vec.shape)) else: raise ValueError("unsupported norm order")