Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sumpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
sumpy
Commits
3fa7a844
Commit
3fa7a844
authored
5 years ago
by
Isuru Fernando
Browse files
Options
Downloads
Patches
Plain Diff
Fix error message
parent
0e4947cf
No related branches found
No related tags found
1 merge request
!119
Fix get_source_args for DirectionalTargetDerivative
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sumpy/tools.py
+2
-4
2 additions, 4 deletions
sumpy/tools.py
with
2 additions
and
4 deletions
sumpy/tools.py
+
2
−
4
View file @
3fa7a844
...
@@ -208,10 +208,8 @@ def vector_from_device(queue, vec):
...
@@ -208,10 +208,8 @@ def vector_from_device(queue, vec):
def
_merge_kernel_arguments
(
dictionary
,
arg
):
def
_merge_kernel_arguments
(
dictionary
,
arg
):
# Check for strict equality until there's a usecase
# Check for strict equality until there's a usecase
if
dictionary
.
setdefault
(
arg
.
name
,
arg
)
!=
arg
:
if
dictionary
.
setdefault
(
arg
.
name
,
arg
)
!=
arg
:
raise
ValueError
(
msg
=
"
Merging two different kernel arguments {} and {} with the same name
"
"
Merging two different kernel arguments {} {} with
"
.
format
(
raise
ValueError
(
msg
.
format
(
arg
.
loopy_arg
,
dictionary
[
arg
].
loopy_arg
))
arg
.
loopy_arg
,
dictionary
[
arg
].
loopy_arg
)
+
\
"
the same name {}
"
.
format
(
arg
.
name
))
def
gather_arguments
(
kernel_likes
):
def
gather_arguments
(
kernel_likes
):
...
...
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