Index: wflow-py/wflow/wflow_delwaq.py =================================================================== diff -u -r92352e4ad929dde22092c92c19055e49f3b02470 -r6a2936c98578498849f0f9122f06d7eed3ab79d2 --- wflow-py/wflow/wflow_delwaq.py (.../wflow_delwaq.py) (revision 92352e4ad929dde22092c92c19055e49f3b02470) +++ wflow-py/wflow/wflow_delwaq.py (.../wflow_delwaq.py) (revision 6a2936c98578498849f0f9122f06d7eed3ab79d2) @@ -753,12 +753,12 @@ elif direction == 2: i_other = np_ptid[i+1,j ] # to lower elif direction == 3: i_other = np_ptid[i+1,j+1] # to lower right elif direction == 4: i_other = np_ptid[i ,j-1] # to left - elif direction == 6: i_other = np_ptid[i ,j-1] # to right + elif direction == 6: i_other = np_ptid[i ,j+1] # to right elif direction == 7: i_other = np_ptid[i-1,j-1] # to upper right elif direction == 8: i_other = np_ptid[i-1,j ] # to upper elif direction == 9: i_other = np_ptid[i-1,j+1] # to upper left if i_other >= 0: - flow_links[i_flink,:] = i_elem, np_ptid[i+1,j-1] + flow_links[i_flink,:] = i_elem, i_other i_flink += 1 # Convert data to numpy arrays