mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Explicit integer conversion in read_plots_xml.
This commit is contained in:
parent
dbc026df0e
commit
84ca556661
1 changed files with 6 additions and 6 deletions
|
|
@ -1338,9 +1338,9 @@ contains
|
|||
pl % color_by = PLOT_COLOR_CELLS
|
||||
allocate(pl % colors(n_cells))
|
||||
do j = 1, n_cells
|
||||
pl % colors(j) % rgb(1) = prn()*255
|
||||
pl % colors(j) % rgb(2) = prn()*255
|
||||
pl % colors(j) % rgb(3) = prn()*255
|
||||
pl % colors(j) % rgb(1) = int(prn()*255)
|
||||
pl % colors(j) % rgb(2) = int(prn()*255)
|
||||
pl % colors(j) % rgb(3) = int(prn()*255)
|
||||
end do
|
||||
|
||||
case ("mat", "material")
|
||||
|
|
@ -1348,9 +1348,9 @@ contains
|
|||
pl % color_by = PLOT_COLOR_MATS
|
||||
allocate(pl % colors(n_materials))
|
||||
do j = 1, n_materials
|
||||
pl % colors(j) % rgb(1) = prn()*255
|
||||
pl % colors(j) % rgb(2) = prn()*255
|
||||
pl % colors(j) % rgb(3) = prn()*255
|
||||
pl % colors(j) % rgb(1) = int(prn()*255)
|
||||
pl % colors(j) % rgb(2) = int(prn()*255)
|
||||
pl % colors(j) % rgb(3) = int(prn()*255)
|
||||
end do
|
||||
|
||||
case default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue