Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
grudge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
grudge
Commits
77a76f8a
Commit
77a76f8a
authored
4 years ago
by
Alexandru Fikl
Browse files
Options
Downloads
Patches
Plain Diff
eager: add interp with deprecation
parent
64dca1fd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!75
Merge !74 into !71
,
!74
Rename Interpolation to Projection
Pipeline
#39094
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grudge/eager.py
+7
-0
7 additions, 0 deletions
grudge/eager.py
with
7 additions
and
0 deletions
grudge/eager.py
+
7
−
0
View file @
77a76f8a
...
...
@@ -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
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment