Skip to content

Commit 2f70a56

Browse files
committed
Correct order
1 parent 04a6ecd commit 2f70a56

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

pygyro/advection/accelerated_advection_steps.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ def poloidal_advection_step_expl(f: 'float[:,:]',
4545
nPts_q = qPts.shape[0]
4646

4747
#$omp parallel for collapse(2)
48-
for i in range(nPts_r):
49-
for j, q in enumerate(qPts):
50-
r = rPts[i]
51-
drPhi_0[i, j] = phi_spline.eval(q, r, 0, 1)
52-
dthetaPhi_0[i, j] = phi_spline.eval(q, r, 1, 0)
48+
for j in range(nPts_q):
49+
for i, r in enumerate(rPts):
50+
q = qPts[j]
51+
drPhi_0[j, i] = phi_spline.eval(q, r, 0, 1)
52+
dthetaPhi_0[j, i] = phi_spline.eval(q, r, 1, 0)
5353

5454
idx = nPts_r-1
5555
rMax = rPts[idx]

0 commit comments

Comments
 (0)