Skip to content

Commit

Permalink
now the sor benchmark uses true division in Python3
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Feb 13, 2018
1 parent c947066 commit faa0f54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions benchpress/benchmarks/sor/python_numpy/sor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
import numpy as np

def freezetrap(height, width, dtype=np.float32):
r0 = np.zeros(((height+2)/2,(width+2)/2), dtype=dtype)
r1 = np.zeros(((height+2)/2,(width+2)/2), dtype=dtype)
b0 = np.zeros(((height+2)/2,(width+2)/2), dtype=dtype)
b1 = np.zeros(((height+2)/2,(width+2)/2), dtype=dtype)
r0 = np.zeros(((height+2)//2,(width+2)//2), dtype=dtype)
r1 = np.zeros(((height+2)//2,(width+2)//2), dtype=dtype)
b0 = np.zeros(((height+2)//2,(width+2)//2), dtype=dtype)
b1 = np.zeros(((height+2)//2,(width+2)//2), dtype=dtype)
r0[0,:] = 40.0 # Top
b0[0,:] = 40.0 # Top
r1[-1,:] = -273.15 # Bottom
Expand Down

0 comments on commit faa0f54

Please sign in to comment.