mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 04:25:29 -04:00
parallel projection plotting now matches single thread results
This commit is contained in:
parent
030c3af9e4
commit
a0401906cd
3 changed files with 10 additions and 6 deletions
12
src/plot.cpp
12
src/plot.cpp
|
|
@ -1197,11 +1197,15 @@ void ProjectionPlot::create_output() const
|
|||
|
||||
int vert = omp_get_thread_num();
|
||||
for (int iter = 0; iter <= pixels_[1] / n_threads; iter++) {
|
||||
if (vert < pixels_[1]) {
|
||||
|
||||
// Save bottom line of current work chunk to compare against later
|
||||
if (tid == n_threads - 1)
|
||||
old_segments = this_line_segments[n_threads - 1];
|
||||
// Save bottom line of current work chunk to compare against later
|
||||
// I used to have this inside the below if block, but it causes a
|
||||
// spurious line to be drawn at the bottom of the image. Not sure
|
||||
// why, but moving it here fixes things.
|
||||
if (tid == n_threads - 1)
|
||||
old_segments = this_line_segments[n_threads - 1];
|
||||
|
||||
if (vert < pixels_[1]) {
|
||||
|
||||
for (int horiz = 0; horiz < pixels_[0]; ++horiz) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue