Skip to content

Commit 4782644

Browse files
committed
update/fix HS94_particles.jl
1 parent e8bf346 commit 4782644

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/HS94_particles.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ if found_MITgcm_files
123123
u0=read(joinpath(D.pth,D.U[m0]),D.tmp)[:,D.k]
124124
v0=read(joinpath(D.pth,D.V[m0]),D.tmp)[:,D.k]
125125
u0=u0.*D.iDXC; v0=v0.*D.iDYC; #normalize to grid units
126-
(u0,v0)=exchange(u0,v0,1) #add 1 point at each edge for u and v
126+
(u0,v0)=MeshArrays.exchange_main(u0,v0,1) #add 1 point at each edge for u and v
127127

128128
u1=read(joinpath(D.pth,D.U[m1]),D.tmp)[:,D.k]
129129
v1=read(joinpath(D.pth,D.V[m1]),D.tmp)[:,D.k]
130130
u1=u1.*D.iDXC; v1=v1.*D.iDYC; #normalize to grid units
131-
(u1,v1)=exchange(u1,v1,1) #add 1 point at each edge for u and v
131+
(u1,v1)=MeshArrays.exchange_main(u1,v1,1) #add 1 point at each edge for u and v
132132

133133
I.P.u0[:]=u0.MA[:]
134134
I.P.u1[:]=u1.MA[:]

0 commit comments

Comments
 (0)