mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Check for valid secondary mode on S(a,b) tables.
This commit is contained in:
parent
f971c83162
commit
c18a6eafa4
1 changed files with 7 additions and 1 deletions
|
|
@ -1178,8 +1178,14 @@ contains
|
|||
integer :: NMU ! number of outgoing angles
|
||||
integer :: JXS4 ! location of elastic energy table
|
||||
|
||||
! read secondary energy mode for inelastic scattering
|
||||
! read secondary energy mode for inelastic scattering and check
|
||||
table % secondary_mode = NXS(7)
|
||||
if (table % secondary_mode /= SAB_SECONDARY_EQUAL .and. &
|
||||
table % secondary_mode /= SAB_SECONDARY_SKEWED) then
|
||||
message = "Unsupported secondary mode on S(a,b) table " // &
|
||||
trim(adjustl(table % name)) // ": " // to_str(table % secondary_mode)
|
||||
call fatal_error()
|
||||
end if
|
||||
|
||||
! read number of inelastic energies and allocate arrays
|
||||
NE_in = int(XSS(JXS(1)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue