remove filter check

这个提交包含在:
jasminium
2019-09-04 17:10:51 +01:00
父节点 b46265fcf9
当前提交 04635cb4f5

查看文件

@@ -46,13 +46,6 @@ class SubGridBase(UserObjectMulti):
else: else:
raise Exception(str(node) + ' This Object can not be added to a sub grid') 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): def set_discretisation(self, sg, grid):
"""Set the spatial discretisation.""" """Set the spatial discretisation."""
sg.dx = grid.dx / sg.ratio sg.dx = grid.dx / sg.ratio
@@ -95,8 +88,6 @@ class SubGridBase(UserObjectMulti):
p1, p2 = uip.check_box_points(p1, p2, self.__str__()) p1, p2 = uip.check_box_points(p1, p2, self.__str__())
self.check_filters(grid)
self.set_discretisation(sg, grid) self.set_discretisation(sg, grid)
# Set the temporal discretisation # Set the temporal discretisation