aboutsummaryrefslogtreecommitdiff
path: root/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2022-09-02 18:08:06 +0200
committerGravatar GitHub <noreply@github.com> 2022-09-02 09:08:06 -0700
commitd73bfa1f13efe9efcebc97f823aca8c96ac1f723 (patch)
tree9edcb2270ca6c3d12e2936d8d2341254f2744ced /Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp
parent09940d721ac2cbb6173f7a3855a969f1f6e98bce (diff)
downloadWarpX-d73bfa1f13efe9efcebc97f823aca8c96ac1f723.tar.gz
WarpX-d73bfa1f13efe9efcebc97f823aca8c96ac1f723.tar.zst
WarpX-d73bfa1f13efe9efcebc97f823aca8c96ac1f723.zip
Remove some magic numbers (#3355)
* remove some magic numbers * fixed unreachable code issue * fixed issue with unreachable code * fixed issue with unreachable code * remove type traits * revert one change in Gaussian Laser * improved ParticleExtrema * fix bug
Diffstat (limited to 'Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp')
-rw-r--r--Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp b/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp
index fc7fc59aa..33de9c1da 100644
--- a/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp
+++ b/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp
@@ -63,6 +63,7 @@ WarpXLaserProfiles::GaussianLaserProfile::init (
m_common_params.nvec.begin(),
m_common_params.nvec.end(),
m_params.stc_direction.begin(), 0.0);
+
WARPX_ALWAYS_ASSERT_WITH_MESSAGE(std::abs(dp2) < 1.0e-14,
"stc_direction is not perpendicular to the laser plane vector");