Skip to content
Snippets Groups Projects
Commit 4b11993f authored by Christoph von Oy's avatar Christoph von Oy
Browse files

Fixed bug in variable resampling

parent 9c293d53
Branches
No related tags found
No related merge requests found
......@@ -1018,8 +1018,8 @@ class AssignmentToBacked(Assignment):
):
acc = 0.0
for source_position, factor in expression:
acc += factor * variable[:, source_position - source_start]
target_variable[:, local_target_position] = acc
acc += factor * variable[source_position - source_start]
target_variable[local_target_position] = acc
return target_variable
......@@ -1123,8 +1123,8 @@ class AssignmentFromBacked(Assignment):
for local_target_position, source_position in enumerate(
self.distribution_positions[target_start:target_end]
):
target_variable[:, local_target_position] = variable[
:, source_position - source_start
target_variable[local_target_position] = variable[
source_position - source_start
]
return target_variable
......@@ -1254,8 +1254,8 @@ class AssignmentCommon(Assignment):
):
acc = 0.0
for source_position, factor in expression:
acc += factor * variable[:, source_position - source_start]
target_variable[:, local_target_position] = acc
acc += factor * variable[source_position - source_start]
target_variable[local_target_position] = acc
return target_variable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment