Skip to content

Commit

Permalink
remove anon namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers committed Feb 6, 2025
1 parent 33fd30e commit eba0105
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Src/Base/AMReX_Random.H
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ namespace amrex
#endif
}

namespace {
namespace random_util {

AMREX_GPU_DEVICE AMREX_FORCE_INLINE
Real RandomGamma_alpha_ge_1 (Real alpha, Real beta, RandomEngine const& random_engine)
Expand Down Expand Up @@ -175,9 +175,9 @@ namespace amrex
if (alpha < 1)
{
Real u = amrex::Random(random_engine);
return RandomGamma_alpha_ge_1(1.0_rt + alpha, beta, random_engine) * std::pow(u, 1.0_rt / alpha);
return amrex::random_util::RandomGamma_alpha_ge_1(1.0_rt + alpha, beta, random_engine) * std::pow(u, 1.0_rt / alpha);
} else {
return RandomGamma_alpha_ge_1(alpha, beta, random_engine);
return amrex::random_util::RandomGamma_alpha_ge_1(alpha, beta, random_engine);
}
))

Expand Down

0 comments on commit eba0105

Please sign in to comment.