From dc03f033f847786835ae8045fead8f48f6d6c1a0 Mon Sep 17 00:00:00 2001 From: PhilipDeegan Date: Sun, 22 Sep 2024 23:12:08 +0200 Subject: [PATCH] ++ --- pyphare/pyphare/simulator/simulator.py | 2 +- src/hdf5/detail/h5/h5_file.hpp | 2 +- src/simulator/simulator.hpp | 2 ++ tests/functional/harris/harris_2d_lb.py | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pyphare/pyphare/simulator/simulator.py b/pyphare/pyphare/simulator/simulator.py index 57d206b5a..712c703ef 100644 --- a/pyphare/pyphare/simulator/simulator.py +++ b/pyphare/pyphare/simulator/simulator.py @@ -171,7 +171,7 @@ def times(self): self.timeStep(), ) - def run(self, plot_times=False, monitoring=True): + def run(self, plot_times=False, monitoring=False): """monitoring requires phlop""" from pyphare.cpp import cpp_lib diff --git a/src/hdf5/detail/h5/h5_file.hpp b/src/hdf5/detail/h5/h5_file.hpp index dd4e12735..06ec1ec55 100644 --- a/src/hdf5/detail/h5/h5_file.hpp +++ b/src/hdf5/detail/h5/h5_file.hpp @@ -52,7 +52,7 @@ class HighFiveFile fapl.add(HighFive::MPIOFileAccess{MPI_COMM_WORLD, MPI_INFO_NULL}); #else std::cout << "WARNING: PARALLEL HDF5 not available" << std::endl; - if (core::mpi_size() > 1) + if (core::mpi::size() > 1) { throw std::runtime_error("HDF5 NOT PARALLEL!"); } diff --git a/src/simulator/simulator.hpp b/src/simulator/simulator.hpp index c333946c8..81cc00c8e 100644 --- a/src/simulator/simulator.hpp +++ b/src/simulator/simulator.hpp @@ -367,6 +367,8 @@ std::string Simulator<_dimension, _interp_order, _nbRefinedPart>::to_str() template void Simulator<_dimension, _interp_order, _nbRefinedPart>::initialize() { + PHARE_LOG_SCOPE(1, "Simulator::initialize"); + try { if (isInitialized) diff --git a/tests/functional/harris/harris_2d_lb.py b/tests/functional/harris/harris_2d_lb.py index e701e8231..71ba63646 100644 --- a/tests/functional/harris/harris_2d_lb.py +++ b/tests/functional/harris/harris_2d_lb.py @@ -171,12 +171,12 @@ def plot(diag_dir): for c in ["x", "y", "z"]: run.GetB(time).plot( filename=plot_file_for_qty(f"b{c}", time), - qty=f"B{c}", + qty=f"{c}", plot_patches=True, ) run.GetJ(time).plot( filename=plot_file_for_qty("jz", time), - qty="Jz", + qty="z", plot_patches=True, vmin=-2, vmax=2,