-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathtestme.py
More file actions
executable file
·51 lines (40 loc) · 971 Bytes
/
testme.py
File metadata and controls
executable file
·51 lines (40 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python3
"""
@author: glesur
"""
import os
import sys
sys.path.append(os.getenv("IDEFIX_DIR"))
import pytools.idfx_test as tst
name="dump.0001.dmp"
def testMe(test):
test.configure()
test.compile()
inifiles=["idefix.ini","idefix-hll.ini","idefix-hllc.ini","idefix-tvdlf.ini"]
if test.reconstruction==4:
inifiles=["idefix-rk3.ini","idefix-hllc-rk3.ini"]
# loop on all the ini files for this test
for ini in inifiles:
test.run(inputFile=ini)
if test.init:
test.makeReference(filename=name)
test.standardTest()
test.nonRegressionTest(filename=name)
test=tst.idfxTest()
if not test.all:
if(test.check):
test.checkOnly(filename=name)
else:
testMe(test)
else:
test.noplot = True
for rec in range(2,5):
test.vectPot=False
test.single=False
test.reconstruction=rec
test.mpi=False
testMe(test)
# test in single precision
test.reconstruction=2
test.single=True
testMe(test)