Skip to content

Commit 8773225

Browse files
author
Thomas Baumann
committed
Fixed recording
1 parent 5a0d1a7 commit 8773225

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

pySDC/projects/GPU/analysis_scripts/RBC3D_order.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@
1010

1111
step_sizes = {
1212
'RBC3DG4R4Ra1e5': [8e-2, 4e-2, 2e-2, 1e-2, 5e-3],
13-
# 'RBC3DG4R4SDC23Ra1e5': [8e-2, 4e-2, 2e-2, 1e-2, 5e-3, 2.5e-3],
14-
# 'RBC3DG4R4SDC34Ra1e5': [8e-2, 4e-2, 2e-2, 1e-2, 5e-3],
15-
'RBC3DG4R4SDC23Ra1e5': [5e-3 * 2**i for i in range(5)],
16-
'RBC3DG4R4SDC44Ra1e5': [5e-3 * 2**i for i in range(5)],
17-
# 'RBC3DG4R4SDC44Ra1e5': [1e-3 * 2**i for i in range(8)],
18-
'RBC3DG4R4SDC34Ra1e5': [1e-3 * 2**i for i in range(10)],
19-
'RBC3DG4R4RKRa1e5': [8e-2, 4e-2, 2e-2, 1e-2, 5e-3, 2.5e-3],
20-
# 'RBC3DG4R4EulerRa1e5': [8e-2, 4e-2, 2e-2, 1e-2, 5e-3],
21-
'RBC3DG4R4EulerRa1e5': [1e-3 * 2**i for i in range(5)],
13+
'RBC3DG4R4SDC23Ra1e5': [5e-3 * 2**i for i in range(8)],
14+
'RBC3DG4R4SDC34Ra1e5': [5e-3 * 2**i for i in range(8)],
15+
'RBC3DG4R4SDC44Ra1e5': [5e-3 * 2**i for i in range(8)],
16+
'RBC3DG4R4RKRa1e5': [5e-3 * 2**i for i in range(8)],
17+
'RBC3DG4R4EulerRa1e5': [5e-3 * 2**i for i in range(8)],
2218
}
2319
n_freefall_times = {}
2420

@@ -44,7 +40,7 @@ def compute_errors(args, dts, Tend):
4440
e = u - ref
4541
for comp in ['u', 'v', 'w', 'T', 'p']:
4642
i = prob.index(comp)
47-
e_comp = np.max(np.abs(e[i]))
43+
e_comp = np.max(np.abs(e[i])) / np.max(np.abs(ref[i]))
4844
e_comp = MPI.COMM_WORLD.allreduce(e_comp, op=MPI.MAX)
4945
errors[comp].append(e_comp)
5046
errors['dt'].append(dt)
@@ -135,6 +131,7 @@ def run(args, dt, Tend):
135131

136132
u_hat = run_experiment(args, config)
137133
u = prob.itransform(u_hat)
134+
138135
return u
139136

140137

0 commit comments

Comments
 (0)