Skip to content

Commit 6be2047

Browse files
authored
Merge pull request #71 from JuliaGeo/ncc/optimization
Fix loop order in _compute_cell_matrix! function
2 parents f5bfe85 + 740dc5c commit 6be2047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ConservativeRegriddingOceananigansExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ flip(::Face) = Center()
7070
flip(::Center) = Face()
7171

7272
function _compute_cell_matrix!(cell_matrix, Fx, Fy, ℓx, ℓy, grid)
73-
for i in 1:Fx, j in 1:Fy
73+
for j in 1:Fy, i in 1:Fx
7474
vx = flip(ℓx)
7575
vy = flip(ℓy)
7676

0 commit comments

Comments
 (0)