From a9e32579dd3ddcb8eee5aebda62b4a3471b69ee3 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 30 Jul 2018 23:53:05 -0500 Subject: [PATCH] Fix one aspect of 1D support --- grudge/symbolic/primitives.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/grudge/symbolic/primitives.py b/grudge/symbolic/primitives.py index 35c45268..7c92087d 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) -- GitLab