From 77a76f8ab0277ce618a476c548992aa23f222db6 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl <alexfikl@gmail.com> Date: Wed, 24 Jun 2020 14:32:38 -0500 Subject: [PATCH] eager: add interp with deprecation --- grudge/eager.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/grudge/eager.py b/grudge/eager.py index 2f718d39..2c412a87 100644 --- a/grudge/eager.py +++ b/grudge/eager.py @@ -45,6 +45,13 @@ def without_queue(ary): class EagerDGDiscretization(DGDiscretizationWithBoundaries): + def interp(self, src, tgt, vec): + from warnings import warn + warn("using 'interp' is deprecated, use 'project' instead.", + DeprecationWarning, stacklevel=1) + + return self.project(src, tgt, vec) + def project(self, src, tgt, vec): if is_obj_array(vec): return with_object_array_or_scalar( -- GitLab