你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 15:10:13 +08:00
Update add_surface_roughness.py
这个提交包含在:
@@ -154,7 +154,7 @@ class AddSurfaceRoughness(UserObjectGeometry):
|
||||
if zs == zf:
|
||||
logger.exception(f"{self.__str__()} dimensions are not specified correctly")
|
||||
raise ValueError
|
||||
if ys not in [volume.ys and volume.yf]:
|
||||
if ys not in [volume.ys, volume.yf]:
|
||||
logger.exception(f"{self.__str__()} can only be used on the external " + "surfaces of a fractal box")
|
||||
raise ValueError
|
||||
fractalrange = (round_value(limits[0] / grid.dy), round_value(limits[1] / grid.dy))
|
||||
@@ -182,7 +182,7 @@ class AddSurfaceRoughness(UserObjectGeometry):
|
||||
requestedsurface = "yplus"
|
||||
|
||||
elif zs == zf:
|
||||
if zs not in [volume.zs and volume.zf]:
|
||||
if zs not in [volume.zs, volume.zf]:
|
||||
logger.exception(f"{self.__str__()} can only be used on the external " + "surfaces of a fractal box")
|
||||
raise ValueError
|
||||
fractalrange = (round_value(limits[0] / grid.dz), round_value(limits[1] / grid.dz))
|
||||
|
在新工单中引用
屏蔽一个用户