Skip to content

Commit

Permalink
Update Source/Particles/ParticleBoundaries_K.H
Browse files Browse the repository at this point in the history
Co-authored-by: David Grote <[email protected]>
  • Loading branch information
RevathiJambunathan and dpgrote authored Mar 26, 2024
1 parent 8b2d89b commit 76a1ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Particles/ParticleBoundaries_K.H
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace ApplyParticleBoundaries {
{
u_tang1 = (uth > 0._rt) ? PhysConst::c * amrex::RandomNormal(0._rt, uth, engine) : 0._rt;
u_tang2 = (uth > 0._rt) ? PhysConst::c * amrex::RandomNormal(0._rt, uth, engine) : 0._rt;
u_norm = -1._rt * PhysConst::c * generateGaussianFluxDist(0._rt, uth, engine) * ((u_norm>0)-(u_norm<0));
u_norm = std::copysign(1._prt, -u_norm) * PhysConst::c * generateGaussianFluxDist(0._rt, uth, engine);
}


Expand Down

0 comments on commit 76a1ca8

Please sign in to comment.