-
Notifications
You must be signed in to change notification settings - Fork 34
Number of groups is unsigned int
#896
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
base: main
Are you sure you want to change the base?
Conversation
ragusa
left a comment
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.
silly question: size_t is machine-dependent but often unsigned int 64 bit, right? why use such a large integer capacity when we know the groups will also be less than what can be encoded using unsigned int?
|
The only reason for which I admit is somewhat silly. It kinda says that groups might be stored in random order, but I don't think the code is capable of handling that. If you always want to iterate over groups from |
Pinging @wdarylhawkins to get his opinion, since both you and I think In forward mode, we go |
I also agree that using |
a715a7b to
2d72fd7
Compare
std::size_tunsigned int
2d72fd7 to
efcab35
Compare
efcab35 to
6619de3
Compare
...nn_solvers/discrete_ordinates_problem/acceleration/discrete_ordinates_keigen_acceleration.cc
Outdated
Show resolved
Hide resolved
...nn_solvers/discrete_ordinates_problem/acceleration/discrete_ordinates_keigen_acceleration.cc
Outdated
Show resolved
Hide resolved
modules/linear_boltzmann_solvers/discrete_ordinates_problem/discrete_ordinates_problem.cc
Outdated
Show resolved
Hide resolved
modules/linear_boltzmann_solvers/lbs_problem/acceleration/wgdsa.cc
Outdated
Show resolved
Hide resolved
modules/linear_boltzmann_solvers/lbs_problem/acceleration/wgdsa.cc
Outdated
Show resolved
Hide resolved
modules/linear_boltzmann_solvers/lbs_problem/groupset/lbs_groupset.cc
Outdated
Show resolved
Hide resolved
c433cd0 to
ff8b1b1
Compare
- Group ID is now `unsigned int`. - Groups IDs are not stored in a container inside `LBSProblem`, we only store the number of groups
Groupset remembers the first and the last group number.
ff8b1b1 to
b9617d7
Compare
Refs #90