Commit 92f5a736 authored by Christopher Werner's avatar Christopher Werner
Browse files

Merge branch 'master' of git.ichec.ie:training/sohpc-training-2021 into cw-python

parents bc0a4b2f b8e1768e
......@@ -4,8 +4,6 @@ import time
import numba
from numba import njit, prange
numba.set_num_threads(8)
def evolve_python(u, u_previous, a, dt, dx2, dy2):
......@@ -119,7 +117,7 @@ def iterate_cachefm(field, field0, timesteps, image_interval):
def iterate_par(field, field0, timesteps, image_interval):
for i in range(1, timesteps+1):
for i in prange(1, timesteps+1):
evolve_par(field, field0, a, dt, dx2, dy2)
# if i % image_interval == 0:
# write_field(field, i)
......@@ -127,7 +125,7 @@ def iterate_par(field, field0, timesteps, image_interval):
def iterate_parfm(field, field0, timesteps, image_interval):
for i in range(1, timesteps+1):
for i in prange(1, timesteps+1):
evolve_parfm(field, field0, a, dt, dx2, dy2)
# if i % image_interval == 0:
# write_field(field, i)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment