Fixed bug in error handling with gamma_dot_filtering odd, v3
@@ -74,9 +74,9 @@ class StepUvlm(BaseSolver):
if self.settings['gamma_dot_filtering'] == 1:
cout.cout_wrap("gamma_dot_filtering cannot be one. Changing it to None", 2)
self.settings['gamma_dot_filtering'] = None
- if not self.settings['gamma_dot_filtering'].value:
- pass
- elif not self.settings['gamma_dot_filtering'].value % 2:
+ if self.settings['gamma_dot_filtering'] is not None:
+ if self.settings['gamma_dot_filtering'].value:
+ if not self.settings['gamma_dot_filtering'].value % 2:
cout.cout_wrap("gamma_dot_filtering does not support even numbers. Changing " + str(self.settings['gamma_dot_filtering']) + " to " + str(self.settings['gamma_dot_filtering'] + 1), 2)
self.settings['gamma_dot_filtering'] += 1
