Skip to content

Commit

Permalink
while (true) to pacify clang
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers committed Feb 6, 2025
1 parent eba0105 commit eecb627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_Random.H
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ namespace amrex
Real d = alpha - 1.0_rt / 3.0_rt;
Real c = (1.0_rt / 3.0_rt) / std::sqrt(d);

while (1) {
while (true) {
do {
x = amrex::RandomNormal(0.0_rt, 1.0_rt, random_engine);
v = 1.0_rt + c * x;
Expand Down

0 comments on commit eecb627

Please sign in to comment.