mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Fixed off-by-one indexing error in the plotter
This commit is contained in:
parent
434f2097c5
commit
0291c0f047
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ contains
|
|||
call position_rgb(p, pl, rgb, id)
|
||||
|
||||
! Create a pixel at (x,y) with color (r,g,b)
|
||||
call set_pixel(img, x, y, rgb(1), rgb(2), rgb(3))
|
||||
call set_pixel(img, x-1, y-1, rgb(1), rgb(2), rgb(3))
|
||||
|
||||
! Advance pixel in first direction
|
||||
p % coord0 % xyz(in_i) = p % coord0 % xyz(in_i) + in_pixel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue