mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 12:35:29 -04:00
Adjusting value for progress bar in plots.
This commit is contained in:
parent
3935aed6bf
commit
e793472b15
2 changed files with 2 additions and 1 deletions
|
|
@ -956,7 +956,7 @@ void create_voxel(Plot pl)
|
|||
int id;
|
||||
for (int x = 0; x < pl.pixels[0]; x++) {
|
||||
// TODO: progress bar here
|
||||
pb.set_value(((double)x/(double)pl.pixels[0])*100);
|
||||
pb.set_value(100.*(double)x/(double)(pl.pixels[0]-1));
|
||||
for (int y = 0; y < pl.pixels[1]; y++) {
|
||||
for (int z = 0; z < pl.pixels[2]; z++) {
|
||||
// get voxel color
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue