Skip to content

Commit

Permalink
mpi functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Oct 24, 2024
1 parent 7e79f09 commit 4e48ff1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
7 changes: 4 additions & 3 deletions tests/functional/harris/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ if(NOT ${PHARE_PROJECT_DIR} STREQUAL ${CMAKE_BINARY_DIR})
endif()

if(HighFive AND testMPI)

## These test use dump diagnostics so require HighFive!
# exec level 11
# mpirun -n 10

if(testMPI)
phare_mpi_python3_exec(11 10 harris_2d harris_2d.py ${CMAKE_CURRENT_BINARY_DIR})
phare_mpi_python3_exec(11 4 harris_2d harris_2d.py ${CMAKE_CURRENT_BINARY_DIR})
endif(testMPI)

endif()
9 changes: 0 additions & 9 deletions tests/functional/harris/harris_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@

def config():
sim = ph.Simulation(
smallest_patch_size=15,
largest_patch_size=25,
time_step_nbr=time_step_nbr,
time_step=time_step,
# boundary_types="periodic",
Expand Down Expand Up @@ -155,13 +153,6 @@ def vthz(x, y):

def main():
Simulator(config()).run()
try:
from tools.python3 import plotting as m_plotting

m_plotting.plot_run_timer_data(diag_outputs, cpp.mpi_rank())
except ImportError:
print("Phlop not found - install with: `pip install phlop`")
cpp.mpi_barrier()


if __name__ == "__main__":
Expand Down
3 changes: 2 additions & 1 deletion tests/simulator/refinement/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ if(HighFive)
## These test use dump diagnostics so require HighFive!
if(testMPI)


# disabled due to https://github.com/PHAREHUB/PHARE/issues/853
# phare_mpi_python3_exec(11 10 complex_2d_refinement test_2d_10_core.py ${CMAKE_CURRENT_BINARY_DIR})

endif(testMPI)

phare_python3_exec(9 simple_2d_refinement test_2d_2_core.py ${CMAKE_CURRENT_BINARY_DIR})
Expand Down

0 comments on commit 4e48ff1

Please sign in to comment.