Fixed segmentation fault when forgetting to specify material on cell. Closes gh-34.

This commit is contained in:
Paul Romano 2011-09-08 13:05:29 -04:00
parent a03d164394
commit 28b2eff77d

View file

@ -132,6 +132,13 @@ contains
c % material = cell_(i) % material
c % fill = cell_(i) % fill
! Check to make sure that either material or fill was specified
if (c % material == 0 .and. c % fill == 0) then
msg = "Neither material nor fill was specified for cell " // &
trim(int_to_str(c % uid))
call fatal_error(msg)
end if
! Check to make sure that both material and fill haven't been
! specified simultaneously
if (c % material /= 0 .and. c % fill /= 0) then