Skip to content

Commit

Permalink
mesh bp gen index, bcast result to all ranks
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Sep 23, 2020
1 parent 09b49e8 commit 0500f75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libs/blueprint/conduit_blueprint_mpi_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ generate_index(const conduit::Node &mesh,
index_out);
}
}

// broadcast the resulting index to all other ranks
relay::mpi::broadcast_using_schema(index_out,
selected_rank,
comm);
}


Expand Down
3 changes: 3 additions & 0 deletions src/tests/blueprint/t_blueprint_mpi_mesh_verify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ TEST(blueprint_mpi_smoke, ranks_with_no_mesh)
"",
bp_index["mesh"],
MPI_COMM_WORLD);

// all ranks should have index data.
EXPECT_TRUE(bp_index["mesh"].dtype().is_object());
}
}

Expand Down

0 comments on commit 0500f75

Please sign in to comment.