Skip to content
Snippets Groups Projects
Commit 31e21afe authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix non-surjectivity handling in connection-apply

parent c8c9356b
No related branches found
No related tags found
No related merge requests found
...@@ -371,7 +371,7 @@ class DiscretizationConnection(object): ...@@ -371,7 +371,7 @@ class DiscretizationConnection(object):
if self.is_surjective: if self.is_surjective:
result = self.to_discr.empty(dtype=vec.dtype) result = self.to_discr.empty(dtype=vec.dtype)
else: else:
result = self.to_discr.zeros(dtype=vec.dtype) result = self.to_discr.zeros(queue, dtype=vec.dtype)
if vec.shape != (self.from_discr.nnodes,): if vec.shape != (self.from_discr.nnodes,):
raise ValueError("invalid shape of incoming resampling data") raise ValueError("invalid shape of incoming resampling data")
......
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