Skip to content

Commit a23eb61

Browse files
committed
fixed advective_fluxes so flake8 is happy
1 parent b28c0af commit a23eb61

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

advection_nonuniform/advective_fluxes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ def unsplit_fluxes(my_data, rp, dt, scalar_name):
114114
dtdy2 = 0.5 * dt / myg.dy
115115

116116
for index, vel in np.ndenumerate(u.v(buf=1)):
117-
F_x.v(buf=1)[index] = vel * (a_x.v(buf=1)[index] - dtdy2
118-
* (F_yt.ip_jp(shift_x.v(buf=1)[index], 1, buf=1)[index]
119-
- F_yt.ip(shift_x.v(buf=1)[index], buf=1)[index]))
117+
F_x.v(buf=1)[index] = vel * (a_x.v(buf=1)[index] - dtdy2 *
118+
(F_yt.ip_jp(shift_x.v(buf=1)[index], 1, buf=1)[index] -
119+
F_yt.ip(shift_x.v(buf=1)[index], buf=1)[index]))
120120

121121
for index, vel in np.ndenumerate(v.v(buf=1)):
122-
F_y.v(buf=1)[index] = vel * (a_y.v(buf=1)[index] - dtdx2
123-
* (F_xt.ip_jp(1, shift_y.v(buf=1)[index], buf=1)[index]
124-
- F_xt.jp(shift_y.v(buf=1)[index], buf=1)[index]))
122+
F_y.v(buf=1)[index] = vel * (a_y.v(buf=1)[index] - dtdx2 *
123+
(F_xt.ip_jp(1, shift_y.v(buf=1)[index], buf=1)[index] -
124+
F_xt.jp(shift_y.v(buf=1)[index], buf=1)[index]))
125125

126126
return F_x, F_y

0 commit comments

Comments
 (0)