We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1881182 commit 76bee8cCopy full SHA for 76bee8c
test/HD/sod/idefix_py.ini
@@ -0,0 +1,27 @@
1
+[Grid]
2
+X1-grid 1 0.0 500 u 1.0
3
+X2-grid 1 0.0 1 u 1.0
4
+X3-grid 1 0.0 1 u 1.0
5
+
6
+[TimeIntegrator]
7
+CFL 0.8
8
+tstop 0.2
9
+first_dt 1.e-4
10
+nstages 2
11
12
+[Hydro]
13
+solver roe
14
+gamma 1.4
15
16
+[Boundary]
17
+X1-beg outflow
18
+X1-end outflow
19
+X2-beg outflow
20
+X2-end outflow
21
+X3-beg outflow
22
+X3-end outflow
23
24
+[Output]
25
+vtk 0.1
26
+dmp 0.2
27
+python 0.1 output myfunc
test/HD/sod/output.py
@@ -0,0 +1,6 @@
+import numpy as np
+def myfunc(n, array):
+ print("Python n=%d"%n)
+ print("Dimensions="+str(array.shape))
+ print(array[0,0,0,:])
0 commit comments