Log a warning if geometry only but not geometry to output

- It is possible for an MPI rank to have no geometry to output while
  others do. However it is still worth logging a warning as the work
  is not being well distributed across the ranks.
- For non-MPI runs, a warning still notifies them of a problem.
这个提交包含在:
Nathan Mannall
2025-03-06 15:26:11 +00:00
父节点 86f2bb9124
当前提交 44d0a4d333

查看文件

@@ -304,8 +304,11 @@ class Model:
and not self.geometryobjects
and config.sim_config.args.geometry_only
):
logger.exception("\nNo geometry views or geometry objects found.")
raise ValueError
logger.warning(
"Geometry only run specified, but no geometry views or geometry objects found."
)
return
save_geometry_views(self.geometryviews)
if self.geometryobjects: