mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Remove nuclide_dict from Fortran side
This commit is contained in:
parent
b25feff0e7
commit
2ffbb6ea26
8 changed files with 39 additions and 28 deletions
|
|
@ -163,7 +163,7 @@ class Material(_FortranObjectWithID):
|
|||
_dll.openmc_material_get_densities(self._index, nuclides, densities, n)
|
||||
|
||||
# Convert to appropriate types and return
|
||||
nuclide_list = [Nuclide(nuclides[i]).name for i in range(n.value)]
|
||||
nuclide_list = [Nuclide(nuclides[i] + 1).name for i in range(n.value)]
|
||||
density_array = as_array(densities, (n.value,))
|
||||
return nuclide_list, density_array
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue