Skip to content

Commit 5880c40

Browse files
Update swm_cartesian.py
fixing the read_val array orders
1 parent 6cdc31e commit 5880c40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swm_python/swm_cartesian.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def copy_var(
461461
vval = np.zeros((M_LEN, N_LEN))
462462
pval = np.zeros((M_LEN, N_LEN))
463463

464-
uref, vref, pref = read_arrays(v_val_f, u_val_f, p_val_f)
464+
uref, vref, pref = read_arrays(u_val_f, v_val_f, p_val_f)
465465
uval = uref-unew[:,:,0]
466466
vval = vref-vnew[:,:,0]
467467
pval = pref-pnew[:,:,0]
@@ -612,7 +612,7 @@ def calc_h_program(
612612
vval = np.zeros((M_LEN, N_LEN))
613613
pval = np.zeros((M_LEN, N_LEN))
614614

615-
uref, vref, pref = read_arrays(v_val_f, u_val_f, p_val_f)
615+
uref, vref, pref = read_arrays(u_val_f, v_val_f, p_val_f)
616616
uval = uref-unew
617617
vval = vref-vnew
618618
pval = pref-pnew

0 commit comments

Comments
 (0)