mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
update projection plot regr test
This commit is contained in:
parent
ed5837202b
commit
f1b92603c8
3 changed files with 4 additions and 3 deletions
|
|
@ -1100,7 +1100,7 @@ int ProjectionPlot::advance_to_boundary_from_void(Particle& p)
|
|||
else { // advance the particle
|
||||
for (int j = 0; j < p.n_coord(); ++j)
|
||||
p.coord(j).r += (min_dist + scoot) * p.coord(j).u;
|
||||
return intersected_surface;
|
||||
return std::abs(intersected_surface);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1321,7 +1321,7 @@ void ProjectionPlot::create_output() const
|
|||
this_line_segments[tid][horiz].emplace_back(
|
||||
color_by_ == PlotColorBy::mats ? p.material()
|
||||
: p.coord(p.n_coord() - 1).cell,
|
||||
dist.distance, dist.surface_index);
|
||||
dist.distance, std::abs(dist.surface_index));
|
||||
|
||||
// Advance particle
|
||||
for (int lev = 0; lev < p.n_coord(); ++lev) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue