Skip to content

Commit

Permalink
Commited boundary treatment fix in 1D imager. Undid other patch for t…
Browse files Browse the repository at this point in the history
…esting differences to torch version.
  • Loading branch information
ThomasCeulemans committed Oct 16, 2024
1 parent 5ec2500 commit 6c486c6
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 6c486c6

Please sign in to comment.