Skip to content

Commit

Permalink
Update Tests/Particles/NeighborParticles/MDParticleContainer.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Weiqun Zhang <WeiqunZhang@lbl.gov>
  • Loading branch information
atmyers and WeiqunZhang authored Jul 22, 2024
1 parent d5cac85 commit 75627c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Particles/NeighborParticles/MDParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ std::pair<Real, Real> MDParticleContainer::minAndMaxDistance()

ParticleReal r2 = AMREX_D_TERM(dx*dx, + dy*dy, + dz*dz);
r2 = amrex::max(r2, Params::min_r*Params::min_r);
auto r = ParticleReal(sqrt(r2));
auto r = ParticleReal(std::sqrt(r2));

min_d = std::min(min_d, r);
max_d = std::max(max_d, r);
Expand Down

0 comments on commit 75627c7

Please sign in to comment.