Skip to content

Commit

Permalink
condition for 0 uth
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Mar 28, 2024
1 parent b5ad2bb commit 88a2f12
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 = std::copysign(1._prt, -u_norm) * PhysConst::c * generateGaussianFluxDist(0._rt, uth, engine);
u_norm = (uth > 0._rt) ? std::copysign(1._prt, -u_norm) * PhysConst::c * generateGaussianFluxDist(0._rt, uth, engine) : 0._rt;
}


Expand Down

0 comments on commit 88a2f12

Please sign in to comment.