你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 15:10:13 +08:00
Remove unnecessary initialisation of offset
这个提交包含在:
@@ -37,7 +37,6 @@ def get_neighbour(comm: MPI.Cartcomm, dim: Dim, dir: Dir) -> int:
|
||||
def get_relative_neighbour(
|
||||
comm: MPI.Cartcomm, dirs: npt.NDArray[np.int32], disp: Union[int, npt.NDArray[np.int32]] = 1
|
||||
) -> int:
|
||||
offset = np.zeros(3)
|
||||
offset = np.select([dirs == Dir.NEG, dirs == Dir.POS], [-disp, disp], default=0)
|
||||
|
||||
coord = comm.coords + offset
|
||||
|
在新工单中引用
屏蔽一个用户