Skip to content

Commit bcc5b6c

Browse files
Geoffroy Lesurglesur
authored andcommitted
fix spherical blast wave test with proper threshold and vtk output periodicity
1 parent 71af87a commit bcc5b6c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

test/HD/SedovBlastWave/idefix-spherical.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Grid]
2-
X1-grid 1 0.5 32 u 1.5
3-
X2-grid 1 0.0 32 u 1.0
2+
X1-grid 1 0.5 64 u 1.5
3+
X2-grid 1 0.0 64 u 1.0
44
X3-grid 1 0.0 256 u 6.283185307179586
55

66
[TimeIntegrator]
@@ -25,4 +25,4 @@ X3-beg periodic
2525
X3-end periodic
2626

2727
[Output]
28-
vtk 0.01
28+
vtk 0.1

test/HD/SedovBlastWave/python/testidefix.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@
7070

7171
error=np.mean(np.fabs(p3D[index]-solinterp(r3D[index])))
7272
print("Error=%e"%error)
73-
if error<7.7e-2:
73+
erroref = 7.7e-2
74+
if V.geometry == "spherical":
75+
erroref = 1.9e-1
76+
if error<erroref:
7477
print("SUCCESS!")
7578
sys.exit(0)
7679
else:

0 commit comments

Comments
 (0)