你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Improved checking of spatial resolution when importing geometry from HDF5 file.
这个提交包含在:
@@ -92,7 +92,7 @@ def process_geometrycmds(geometry, G):
|
|||||||
# Open geometry object file and read/check spatial resolution attribute
|
# Open geometry object file and read/check spatial resolution attribute
|
||||||
f = h5py.File(geofile, 'r')
|
f = h5py.File(geofile, 'r')
|
||||||
dx_dy_dz = f.attrs['dx, dy, dz']
|
dx_dy_dz = f.attrs['dx, dy, dz']
|
||||||
if dx_dy_dz[0] != G.dx or dx_dy_dz[1] != G.dy or dx_dy_dz[2] != G.dz:
|
if int(dx_dy_dz[0] / G.dx) != 1 or int(dx_dy_dz[1] / G.dy) != 1 or int(dx_dy_dz[2] / G.dz) != 1:
|
||||||
raise CmdInputError("'" + ' '.join(tmp) + "'" + ' requires the spatial resolution of the geometry objects file to match the spatial resolution of the model')
|
raise CmdInputError("'" + ' '.join(tmp) + "'" + ' requires the spatial resolution of the geometry objects file to match the spatial resolution of the model')
|
||||||
|
|
||||||
data = f['/data'][:]
|
data = f['/data'][:]
|
||||||
|
在新工单中引用
屏蔽一个用户