From 04635cb4f592264a1bb06f2536ce9f49cea80a68 Mon Sep 17 00:00:00 2001 From: jasminium Date: Wed, 4 Sep 2019 17:10:51 +0100 Subject: [PATCH] remove filter check --- gprMax/subgrids/user_objects.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gprMax/subgrids/user_objects.py b/gprMax/subgrids/user_objects.py index 40ecf0bf..0917bf6d 100644 --- a/gprMax/subgrids/user_objects.py +++ b/gprMax/subgrids/user_objects.py @@ -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