Allow law 4 energy distribution with one interpolation region.

This commit is contained in:
Paul Romano 2013-04-23 18:54:10 -04:00
parent 10d3327bc4
commit cb59185217

View file

@ -1469,7 +1469,11 @@ contains
! read number of interpolation regions and incoming energies
NR = int(edist % data(1))
NE = int(edist % data(2 + 2*NR))
if (NR > 0) then
if (NR == 1) then
message = "Assuming linear-linear interpolation when sampling &
&continuous tabular distribution"
call warning()
else if (NR > 1) then
call write_particle_restart()
message = "Multiple interpolation regions not supported while &
&attempting to sample continuous tabular distribution."