你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-04 11:36:52 +08:00
Log error and exit if MPI_COMM_WORLD is too small
这个提交包含在:
@@ -169,10 +169,11 @@ class MPIContext(Context):
|
||||
|
||||
requested_mpi_size = np.prod(config.sim_config.mpi)
|
||||
if self.comm.size < requested_mpi_size:
|
||||
raise ValueError(
|
||||
logger.error(
|
||||
f"MPI_COMM_WORLD size of {self.comm.size} is too small for requested dimensions of"
|
||||
f" {config.sim_config.mpi}. {requested_mpi_size} ranks are required."
|
||||
)
|
||||
exit()
|
||||
|
||||
if self.rank >= requested_mpi_size:
|
||||
logger.warning(
|
||||
|
在新工单中引用
屏蔽一个用户