Skip to content

Commit

Permalink
Add assertion to check if a rank has no vertices
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Oct 29, 2023
1 parent 749cb0e commit c616f27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions micro_manager/micro_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ def initialize(self) -> None:

self._mesh_vertex_ids, mesh_vertex_coords = self._participant.get_mesh_vertex_ids_and_coordinates(
self._macro_mesh_name)
assert (mesh_vertex_coords.size != 0), "Macro mesh has no vertices."

self._local_number_of_sims, _ = mesh_vertex_coords.shape
self._logger.info("Number of local micro simulations = {}".format(self._local_number_of_sims))

Expand Down

0 comments on commit c616f27

Please sign in to comment.