-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Remove explicit (bin0/bin1) access to MaterialSlab #3028
chore: Remove explicit (bin0/bin1) access to MaterialSlab #3028
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3028 +/- ##
==========================================
- Coverage 48.83% 48.83% -0.01%
==========================================
Files 491 491
Lines 28893 28889 -4
Branches 13705 13711 +6
==========================================
- Hits 14111 14107 -4
- Misses 4954 4956 +2
+ Partials 9828 9826 -2 ☔ View full report in Codecov by Sentry. |
📊: Physics performance monitoring for 2c247f5physmon summary
|
Hi @ssdetlab - this is a tiny PR in preparation for the GridSurfaceMaterial, it removes an interface method that only makes sense for one specific implementation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@asalzburger, I think that for the policy-bot to be satisfied I need to be on the reviewers list. I'll send the request
…ct#3028) This PR removes the explicit: `materialSlab(std::size_t bin0, std::size_t bin1)` access from the `ISurfaceMaterial` base class (and the derived classes), because it only makes sense for `BinnedSurfaceMaterial `, and not for other surface material versions. In all cases this was used, it was clear that you had `BinnedSurfaceMaterial` in hand, so you could directly access the `fullMaterial()` matrix.
…ct#3028) This PR removes the explicit: `materialSlab(std::size_t bin0, std::size_t bin1)` access from the `ISurfaceMaterial` base class (and the derived classes), because it only makes sense for `BinnedSurfaceMaterial `, and not for other surface material versions. In all cases this was used, it was clear that you had `BinnedSurfaceMaterial` in hand, so you could directly access the `fullMaterial()` matrix.
…ct#3028) This PR removes the explicit: `materialSlab(std::size_t bin0, std::size_t bin1)` access from the `ISurfaceMaterial` base class (and the derived classes), because it only makes sense for `BinnedSurfaceMaterial `, and not for other surface material versions. In all cases this was used, it was clear that you had `BinnedSurfaceMaterial` in hand, so you could directly access the `fullMaterial()` matrix.
This PR removes the explicit:
materialSlab(std::size_t bin0, std::size_t bin1)
access from theISurfaceMaterial
base class (and the derived classes), because it only makes sense forBinnedSurfaceMaterial
, and not for other surface material versions.In all cases this was used, it was clear that you had
BinnedSurfaceMaterial
in hand, so you could directly access thefullMaterial()
matrix.