Skip to content
Snippets Groups Projects
Commit 3fa7a844 authored by Isuru Fernando's avatar Isuru Fernando
Browse files

Fix error message

parent 0e4947cf
No related branches found
No related tags found
1 merge request!119Fix get_source_args for DirectionalTargetDerivative
...@@ -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):
......
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