File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+ """
3+
4+ @author: glesur
5+ """
6+ import os
7+ import sys
8+ sys .path .append (os .getenv ("IDEFIX_DIR" ))
9+
10+ import pytools .idfx_test as tst
11+
12+ # Whether we should reset our reference run (only do that on purpose!)
13+
14+ tolerance = 1e-13
15+
16+ def testMe (test ):
17+ test .configure ()
18+ test .compile ()
19+
20+ # Check restarts
21+ test .run ("idefix.ini" )
22+
23+
24+ test = tst .idfxTest ()
25+
26+ # if no decomposition is specified, use that one
27+ if not test .dec :
28+ test .dec = ["2" ,"2" ,"2" ]
29+
30+ if not test .all :
31+ testMe (test )
32+ else :
33+ test .vectPot = False
34+ test .reconstruction = 2
35+ test .mpi = False
36+ testMe (test )
37+ # test in MPI mode
38+ test .mpi = True
39+ testMe (test )
40+
41+
42+ # test with vector potential
43+ test .mpi = False
44+ test .vectPot = True
45+ test .reconstruction = 2
46+ testMe (test )
47+
48+ test .mpi = True
49+ testMe (test )
50+
51+ # test with other precision
52+ test .single = True
53+ test .vectPot = False
54+ test .reconstruction = 2
55+ test .mpi = False
56+ testMe (test )
57+ # test in MPI mode
58+ test .mpi = True
59+ testMe (test )
You can’t perform that action at this time.
0 commit comments