Allow zero atom/weight percents in materials. Closes #301 on github.

This commit is contained in:
Paul Romano 2014-08-05 20:08:43 -04:00
parent 5808ed4c2d
commit 2e60c0ea61

View file

@ -1644,8 +1644,8 @@ contains
! Check to make sure either all atom percents or all weight percents are
! given
if (.not. (all(mat % atom_density > ZERO) .or. &
all(mat % atom_density < ZERO))) then
if (.not. (all(mat % atom_density >= ZERO) .or. &
all(mat % atom_density <= ZERO))) then
message = "Cannot mix atom and weight percents in material " // &
to_str(mat % id)
call fatal_error()