Skip to content
Snippets Groups Projects
Commit 69f09e00 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

get rid of pointless division by zero warning

parent a0504f51
Branches
Tags
No related merge requests found
Pipeline #44758 failed
......@@ -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'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment