Skip to content

Commit 2bbd332

Browse files
committed
modified: ext/cuda/remapping_distributed.jl
modified: src/Remapping/distributed_remapping.jl
1 parent bb81b40 commit 2bbd332

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ext/cuda/remapping_distributed.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import CUDA
44
using CUDA: @cuda
55
import ClimaCore.Remapping: _set_interpolated_values_device!
66

7-
# Bilinear in [0,1]²: (1-s)(1-t)*c11 + s*(1-t)*c21 + (1-s)*t*c12 + s*t*c22
7+
# Bilinear in (s,t) ∈ [0,1]² (local to 2-point cell; reference element is [-1,1]²):
8+
# (1-s)(1-t)*c11 + s*(1-t)*c21 + (1-s)*t*c12 + s*t*c22
89
@inline _bilinear(c11, c21, c22, c12, s, t) =
910
(1 - s) * (1 - t) * c11 + s * (1 - t) * c21 + (1 - s) * t * c12 + s * t * c22
1011

src/Remapping/distributed_remapping.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,8 @@ function _set_interpolated_values!(remapper::Remapper, fields)
594594
end
595595
end
596596

597-
# Bilinear in [0,1]²: (1-s)(1-t)*c11 + s*(1-t)*c21 + (1-s)*t*c12 + s*t*c22
597+
# Bilinear in (s,t) ∈ [0,1]² (local to 2-point cell; reference element is [-1,1]²):
598+
# (1-s)(1-t)*c11 + s*(1-t)*c21 + (1-s)*t*c12 + s*t*c22
598599
@inline _bilinear(c11, c21, c22, c12, s, t) =
599600
(1 - s) * (1 - t) * c11 + s * (1 - t) * c21 + (1 - s) * t * c12 + s * t * c22
600601

0 commit comments

Comments
 (0)