mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Merge pull request #1116 from liangjg/mgxs_fix
Fix array IndexOutofbounds crash when a input material is never used for MG mode
This commit is contained in:
commit
172868e6ff
1 changed files with 3 additions and 7 deletions
|
|
@ -126,13 +126,9 @@ contains
|
|||
|
||||
name = trim(mat % name) // C_NULL_CHAR
|
||||
|
||||
! Do not read materials which we do not actually use in the problem to
|
||||
! reduce storage
|
||||
if (allocated(kTs(i_mat) % data)) then
|
||||
call create_macro_xs_c(name, mat % n_nuclides, mat % nuclide, &
|
||||
kTs(i_mat) % size(), kTs(i_mat) % data, mat % atom_density, &
|
||||
temperature_tolerance, temperature_method)
|
||||
end if
|
||||
call create_macro_xs_c(name, mat % n_nuclides, mat % nuclide, &
|
||||
kTs(i_mat) % size(), kTs(i_mat) % data, mat % atom_density, &
|
||||
temperature_tolerance, temperature_method)
|
||||
end do
|
||||
|
||||
end subroutine create_macro_xs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue