Skip to content

Commit

Permalink
cmake cli arg parse (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan authored Sep 21, 2024
1 parent 2f84939 commit 9a2b4d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions tests/simulator/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,16 +223,16 @@ def tearDown(self):
def test_run(self):
sim = config()
self.register_diag_dir_for_cleanup(diag_dir)
Simulator(sim).run()
Simulator(sim).run().reset()
if cpp.mpi_rank() == 0:
plot(diag_dir)

for time in timestamps:
for q in ["divb", "Ranks", "N", "jz"]:
assert_file_exists_with_size_at_least(plot_file_for_qty(q, time))

for c in ["x", "y", "z"]:
assert_file_exists_with_size_at_least(plot_file_for_qty(f"b{c}", time))
for time in timestamps:
for q in ["divb", "Ranks", "N", "jz"]:
assert_file_exists_with_size_at_least(plot_file_for_qty(q, time))
for c in ["x", "y", "z"]:
assert_file_exists_with_size_at_least(plot_file_for_qty(f"b{c}", time))

cpp.mpi_barrier()

Expand Down
2 changes: 1 addition & 1 deletion tools/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def write_local_cmake_file(mpi_results):
if mpi_type == "OMPI":
# work around for https://github.com/open-mpi/ompi/issues/10761#issuecomment-1236909802
file.write(
"""set (PHARE_MPIRUN_POSTFIX "${PHARE_MPIRUN_POSTFIX} --bind-to none")
"""set (PHARE_MPIRUN_POSTFIX "${PHARE_MPIRUN_POSTFIX};--bind-to;none")
"""
)

Expand Down
2 changes: 1 addition & 1 deletion tools/python3/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def plot_run_timer_data(diag_dir=None, rank=0):
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--dir", default=".", help="Diagnostics directory")
diag_dir = parser.parse_args().dir
run = Run(diag_dir, single_hier_for_all_quantities=True)
run = Run(diag_dir)
res = phloping.file_parser(run, rank, Path(f".phare_times.{rank}.txt"))
fig, ax = plt.subplots()
L0X = res.time_steps_for_L(0)
Expand Down

0 comments on commit 9a2b4d6

Please sign in to comment.