Commit ed70232 Jaya Mohan
committed
1 parent e48546d commit ed70232 Copy full SHA for ed70232
File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
# test initializing exago only once
2
2
import os
3
3
import pytest
4
- from check_preconditions import check_preconditions
5
4
import mpi4py .rc
6
5
mpi4py .rc .threads = False
7
6
from mpi4py import MPI # noqa
7
+ from check_preconditions import check_preconditions
8
+ check_preconditions ()
9
+ import exago
8
10
import exago # noqa
9
11
10
12
Original file line number Diff line number Diff line change 10
10
11
11
check_preconditions ()
12
12
13
- exago_ignore = - 1000000
14
-
15
-
16
13
def run_tcopflow (solver ):
17
14
tcopf = exago .TCOPFLOW ()
18
15
path = exago .prefix ()
@@ -24,7 +21,7 @@ def run_tcopflow(solver):
24
21
25
22
tcopf .setup ()
26
23
tcopf .solve ()
27
-
24
+
28
25
assert tcopf .get_convergence_status ()
29
26
30
27
obj = tcopf .get_objective ()
You can’t perform that action at this time.
0 commit comments