Skip to content

Commit

Permalink
Added boundary treatment fix for 1D imager.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCeulemans committed Oct 16, 2024
1 parent 5ec2500 commit d5c2e2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/solver/solver.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,9 @@ accel inline Size Solver ::trace_ray_imaging(const Model& model, const Vector3D&
}
}

if (!accessed_non_boundary) {
// Spherically symmetric models have a correct boundary treatment already, thus no need to
// reduce their accuracy in a region between the outer boundary and the nearest point.
if (!accessed_non_boundary && !model.parameters->spherical_symmetry()) {
return original_id1;
}
return id1;
Expand Down

0 comments on commit d5c2e2b

Please sign in to comment.