Skip to content

Commit

Permalink
add MPI barrier between tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Aug 27, 2024
1 parent 5c4ec58 commit fd8f06d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/test_parallel_assembly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use bempp::{
use itertools::izip;
#[cfg(feature = "mpi")]
use mpi::{
collective::CommunicatorCollectives,
environment::Universe,
request::WaitGuard,
traits::{Communicator, Destination, Source},
Expand Down Expand Up @@ -240,12 +241,14 @@ fn main() {
println!("Testing assembly with DP{degree} using SingleElementGrid in parallel.");
}
test_parallel_assembly_single_element_grid(&world, degree, Continuity::Discontinuous);
world.barrier();
}
for degree in 1..4 {
if rank == 0 {
println!("Testing assembly with P{degree} using SingleElementGrid in parallel.");
}
test_parallel_assembly_single_element_grid(&world, degree, Continuity::Standard);
world.barrier();
}
}
#[cfg(not(feature = "mpi"))]
Expand Down

0 comments on commit fd8f06d

Please sign in to comment.