Commit 69f09e00 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

get rid of pointless division by zero warning

parent a0504f51
Pipeline #44758 failed with stage
......@@ -389,8 +389,8 @@ class DNS(_code):
self.statistics['kMeta' + suffix] *= 0.8
self.statistics['Lint'] = ((np.pi /
(2*self.statistics['Uint']**2)) *
np.nansum(self.statistics['energy(k)'] /
self.statistics['kshell']))
np.sum(self.statistics['energy(k)'][1:-2] /
self.statistics['kshell'][1:-2]))
self.statistics['Re'] = (self.statistics['Uint'] *
self.statistics['Lint'] /
self.parameters['nu'])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment