Skip to content

Commit f87d4aa

Browse files
authored
Merge pull request #255 from Sichao25/yus/transfer
Use target coordinates in `interpolate_field2`
2 parents ff2a2b9 + 075a8d4 commit f87d4aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pcms/transfer_field2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void interpolate_field2(const FieldT<T>& source, FieldT<T>& target)
3333
throw std::runtime_error("Coordinate system mismatch");
3434
}
3535

36-
auto coords = source.GetLayout().GetDOFHolderCoordinates();
36+
auto coords = target.GetLayout().GetDOFHolderCoordinates();
3737
std::vector<Real> evaluation(coords.GetCoordinates().size() / 2);
3838
FieldDataView<Real, HostMemorySpace> data_view{make_array_view(evaluation),
3939
source.GetCoordinateSystem()};

0 commit comments

Comments
 (0)