mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Use integer division in statepoint_meshplot.py.
This commit is contained in:
parent
d06b521463
commit
62415146fc
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from __future__ import print_function
|
||||
from __future__ import print_function, division
|
||||
|
||||
from sys import argv
|
||||
from math import sqrt
|
||||
|
|
@ -58,7 +58,7 @@ for t in sp.tallies:
|
|||
nx, ny, nz = m.dimension
|
||||
|
||||
# Calculate number of score bins
|
||||
ns = t.total_score_bins * t.total_filter_bins / (nx*ny*nz)
|
||||
ns = t.total_score_bins * t.total_filter_bins // (nx*ny*nz)
|
||||
assert n_bins == nx*ny*nz*ns
|
||||
|
||||
# Create lists for tallies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue