Skip to content
Snippets Groups Projects
Commit 77a76f8a authored by Alexandru Fikl's avatar Alexandru Fikl
Browse files

eager: add interp with deprecation

parent 64dca1fd
No related branches found
No related tags found
2 merge requests!75Merge !74 into !71,!74Rename Interpolation to Projection
Pipeline #39094 passed
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment