Skip to content

Commit 6cdc31e

Browse files
Update swm_cartesian.py
adding missing comma
1 parent d31de82 commit 6cdc31e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swm_python/swm_cartesian.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def live_plot_val(fu, fv, fp, title=''):
109109
# for j in range(N + 1):
110110
# psi[i, j, 0] = a * np.sin((i + .5) * d_i) * np.sin((j + .5) * d_j)
111111
# p[i, j, 0] = pcf * (np.cos(2. * (i) * d_i) + np.cos(2. * (j) * d_j)) + 50000.
112-
psi[:,:,0] = a * np.sin((np.arange(0,M_LEN)[:np.newaxis]+0.5) * d_i) * np.sin((np.arange(0,N_LEN)+ .5) * d_j)
112+
psi[:,:,0] = a * np.sin((np.arange(0,M_LEN)[:,np.newaxis]+0.5) * d_i) * np.sin((np.arange(0,N_LEN)+ .5) * d_j)
113113
p[:,:,0] = pcf * (np.cos(2. * np.arange(0,M_LEN)[:, np.newaxis] * d_i) + np.cos(2. * np.arange(0,N_LEN) * d_j)) + 50000.
114114

115115
# Calculate initial u and v

0 commit comments

Comments
 (0)