mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-24 20:15:26 -04:00
Correct failure due to progress bar values (#3143)
This commit is contained in:
parent
57816e6b8c
commit
890cab5242
1 changed files with 4 additions and 4 deletions
|
|
@ -971,10 +971,6 @@ void Plot::create_voxel() const
|
|||
|
||||
ProgressBar pb;
|
||||
for (int z = 0; z < pixels_[2]; z++) {
|
||||
// update progress bar
|
||||
pb.set_value(
|
||||
100. * static_cast<double>(z) / static_cast<double>((pixels_[2] - 1)));
|
||||
|
||||
// update z coordinate
|
||||
pltbase.origin_.z = ll.z + z * vox[2];
|
||||
|
||||
|
|
@ -989,6 +985,10 @@ void Plot::create_voxel() const
|
|||
|
||||
// Write to HDF5 dataset
|
||||
voxel_write_slice(z, dspace, dset, memspace, data_flipped.data());
|
||||
|
||||
// update progress bar
|
||||
pb.set_value(
|
||||
100. * static_cast<double>(z + 1) / static_cast<double>((pixels_[2])));
|
||||
}
|
||||
|
||||
voxel_finalize(dspace, dset, memspace);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue