你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
remove filter check
这个提交包含在:
@@ -46,13 +46,6 @@ class SubGridBase(UserObjectMulti):
|
||||
else:
|
||||
raise Exception(str(node) + ' This Object can not be added to a sub grid')
|
||||
|
||||
def check_filters(self, grid):
|
||||
"""Check the filter of other grids - Only allow filters all on or filters all off."""
|
||||
if grid.subgrids:
|
||||
f = grid.subgrids[0]
|
||||
if f != self.kwargs['filter']:
|
||||
raise CmdInputError(self.__str__() + "Filters should be on or off. Set Filter on or off for all subgrids")
|
||||
|
||||
def set_discretisation(self, sg, grid):
|
||||
"""Set the spatial discretisation."""
|
||||
sg.dx = grid.dx / sg.ratio
|
||||
@@ -95,8 +88,6 @@ class SubGridBase(UserObjectMulti):
|
||||
|
||||
p1, p2 = uip.check_box_points(p1, p2, self.__str__())
|
||||
|
||||
self.check_filters(grid)
|
||||
|
||||
self.set_discretisation(sg, grid)
|
||||
|
||||
# Set the temporal discretisation
|
||||
|
在新工单中引用
屏蔽一个用户