diff --git a/grudge/symbolic/primitives.py b/grudge/symbolic/primitives.py index 35c45268508b99c2e0264f38875eac2e895f335a..7c92087da0cff9e2e1ad62f4fc62a63c4e89baf2 100644 --- a/grudge/symbolic/primitives.py +++ b/grudge/symbolic/primitives.py @@ -508,6 +508,9 @@ def parametrization_derivative(ambient_dim, dim=None, dd=None): if dim is None: dim = ambient_dim + if dim == 0: + return MultiVector(np.array([1.])) + from pytools import product return product( forward_metric_derivative_mv(ambient_dim, rst_axis, dd)