mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Exception for current in domain_to_filter
build_hdf5_store fails for current unless domain_to_filter is circumvented. Because current is a 'mesh' domain, domain_to_filter would assign a mesh filter. However, current uses a meshsurface filter instead, so domain_to_filter must allow for that exception.
This commit is contained in:
parent
4e4c559616
commit
45e2808207
1 changed files with 4 additions and 1 deletions
|
|
@ -560,7 +560,10 @@ class MGXS:
|
|||
domain_type = self.domain_type[4:-1]
|
||||
else:
|
||||
domain_type = self.domain_type
|
||||
filter_type = _DOMAIN_TO_FILTER[domain_type]
|
||||
if self._rxn_type == 'current':
|
||||
filter_type = openmc.MeshSurfaceFilter
|
||||
else:
|
||||
filter_type = _DOMAIN_TO_FILTER[domain_type]
|
||||
domain_filter = self.xs_tally.find_filter(filter_type)
|
||||
return domain_filter.num_bins
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue