mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
removed unnecessary code in mgxs.py
This commit is contained in:
parent
90cd17c3ec
commit
3986a20b13
2 changed files with 1 additions and 13 deletions
|
|
@ -14,7 +14,6 @@ import numpy as np
|
|||
import openmc
|
||||
import openmc.checkvalue as cv
|
||||
from openmc.mgxs import EnergyGroups
|
||||
from openmc import Mesh
|
||||
|
||||
if sys.version_info[0] >= 3:
|
||||
basestring = str
|
||||
|
|
@ -4977,17 +4976,6 @@ class InverseVelocity(MGXS):
|
|||
|
||||
"""
|
||||
|
||||
# Construct a collection of the subdomains to report
|
||||
if not isinstance(subdomains, basestring):
|
||||
cv.check_iterable_type('subdomains', subdomains, Integral)
|
||||
elif self.domain_type == 'distribcell':
|
||||
subdomains = np.arange(self.num_subdomains, dtype=np.int)
|
||||
elif self.domain_type == 'mesh':
|
||||
xyz = map(lambda x: np.arange(1, x+1), self.domain.dimension)
|
||||
subdomains = list(itertools.product(*xyz))
|
||||
else:
|
||||
subdomains = [self.domain.id]
|
||||
|
||||
if xs_type == 'macro':
|
||||
return 'second/cm'
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
e2cdca7ea5b3532050af5b12fac26d7ef212d2696bb1b73cdd00929b2243c40d100ad02438c7b090555b49815d0de6c48cf1b4ebf437a48bc80c2d2b4bad292e
|
||||
e2cdca7ea5b3532050af5b12fac26d7ef212d2696bb1b73cdd00929b2243c40d100ad02438c7b090555b49815d0de6c48cf1b4ebf437a48bc80c2d2b4bad292e
|
||||
Loading…
Add table
Add a link
Reference in a new issue