-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathtestme.py
More file actions
executable file
·49 lines (40 loc) · 914 Bytes
/
testme.py
File metadata and controls
executable file
·49 lines (40 loc) · 914 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
#!/usr/bin/env python3
"""
@author: glesur
"""
import os
import sys
sys.path.append(os.getenv("IDEFIX_DIR"))
import pytools.idfx_test as tst
tolerance=1e-13
def testMe(test):
test.configure()
test.compile()
inifiles=["idefix.ini","idefix-rkl.ini"]
mytol=tolerance
for ini in inifiles:
test.run(inputFile=ini)
if test.init and not test.mpi:
test.makeReference(filename="dump.0001.dmp")
if ini == "idefix-rkl.ini":
mytol = 1e-12
else:
mytol = tolerance
test.standardTest()
test.nonRegressionTest(filename="dump.0001.dmp",tolerance=mytol)
test=tst.idfxTest()
if not test.dec:
test.dec=['2','2']
if not test.all:
if(test.check):
test.checkOnly(filename="dump.0001.dmp",tolerance=tolerance)
else:
testMe(test)
else:
test.noplot = True
test.single=False
test.reconstruction=2
test.mpi=False
testMe(test)
test.mpi=True
testMe(test)