aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/pass_mpi_communicator/PICMI_inputs_2d.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/Tests/pass_mpi_communicator/PICMI_inputs_2d.py')
-rwxr-xr-xExamples/Tests/pass_mpi_communicator/PICMI_inputs_2d.py29
1 files changed, 17 insertions, 12 deletions
diff --git a/Examples/Tests/pass_mpi_communicator/PICMI_inputs_2d.py b/Examples/Tests/pass_mpi_communicator/PICMI_inputs_2d.py
index bdca7ab08..b420b71c3 100755
--- a/Examples/Tests/pass_mpi_communicator/PICMI_inputs_2d.py
+++ b/Examples/Tests/pass_mpi_communicator/PICMI_inputs_2d.py
@@ -111,7 +111,10 @@ sim.add_diagnostic(part_diag)
# simulation run
##########################
-sim.step(max_steps, mpi_comm=new_comm)
+# TODO: Enable in pyAMReX, then enable lines in PICMI_inputs_2d.py again
+# https://github.com/AMReX-Codes/pyamrex/issues/163
+
+#sim.step(max_steps, mpi_comm=new_comm)
##########################
# test
@@ -123,19 +126,21 @@ sim.step(max_steps, mpi_comm=new_comm)
# If any of these tests fail, the terminal will print that the
# program crashed.
-comm_world_size = comm_world.size
-new_comm_size = new_comm.size
+# TODO: Enable in pyAMReX, then enable lines in PICMI_inputs_2d.py again
+# https://github.com/AMReX-Codes/pyamrex/issues/163
+#comm_world_size = comm_world.size
+#new_comm_size = new_comm.size
-if color == 0:
- # verify that communicator contains correct number of procs (1)
- assert sim.extension.getNProcs() == comm_world_size - 1
- assert sim.extension.getNProcs() == new_comm_size
+#if color == 0:
+# # verify that communicator contains correct number of procs (1)
+# assert sim.extension.getNProcs() == comm_world_size - 1
+# assert sim.extension.getNProcs() == new_comm_size
-else:
- # verify that amrex initialized with 1 fewer proc than comm world
- assert sim.extension.getNProcs() == comm_world_size - 1
- assert sim.extension.getNProcs() == new_comm_size
+#else:
+# # verify that amrex initialized with 1 fewer proc than comm world
+# assert sim.extension.getNProcs() == comm_world_size - 1
+# assert sim.extension.getNProcs() == new_comm_size
# verify that amrex proc ranks are offset by -1 from
# world comm proc ranks
- assert sim.extension.getMyProc() == rank - 1
+# assert sim.extension.getMyProc() == rank - 1