mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
minor bugfix to plot slice xml parsing for mask elements
This commit is contained in:
parent
be27d56c94
commit
79b0aae5ff
1 changed files with 2 additions and 2 deletions
|
|
@ -1260,11 +1260,11 @@ contains
|
|||
end do
|
||||
|
||||
! Alter colors based on mask information
|
||||
if (size(plot_(i) % mask_) /= 1) then
|
||||
if (size(plot_(i) % mask_) > 1) then
|
||||
message = "Mutliple masks" // &
|
||||
" specified in plot " // trim(to_str(pl % id))
|
||||
call fatal_error()
|
||||
else
|
||||
else if (.not. size(plot_(i) % mask_) == 0) then
|
||||
do j=1,size(pl % colors)
|
||||
if (.not. any(j .eq. plot_(i) % mask_(1) % components)) then
|
||||
pl % colors(j) % rgb = plot_(i) % mask_(1) % background
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue