mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-24 22:57:42 -05:00
(optionally) read path to flow binary from FLOW_BINARY environment variable
This commit is contained in:
1 parent
6a3c38721f
commit
7b0aeb1a4b
1 file changed
+2
-2
@@ -23,7 +23,7 @@ class TestHybridNewton(unittest.TestCase):
|
||||
cls.times = []
|
||||
|
||||
baseline_cmd = [
|
||||
"flow",
|
||||
os.environ.get("FLOW_BINARY", default="flow"),
|
||||
str(cls.data_dir / cls.deck_file),
|
||||
"--output-extra-convergence-info=steps,iterations",
|
||||
"--newton-min-iterations=0",
|
||||
@@ -124,7 +124,7 @@ class TestHybridNewton(unittest.TestCase):
|
||||
def _run_hybrid_newton_test(self, json_path):
|
||||
"""Run hybrid Newton via subprocess and extract Newton iterations."""
|
||||
cmd = [
|
||||
"flow",
|
||||
os.environ.get("FLOW_BINARY", default="flow"),
|
||||
str(self.data_dir / self.deck_file),
|
||||
f"--hy-ne-config-file={json_path}",
|
||||
"--use-hy-ne=true",
|
||||
|
||||
Reference in new issue
Block a user