diff options
author | 2022-09-02 18:08:06 +0200 | |
---|---|---|
committer | 2022-09-02 09:08:06 -0700 | |
commit | d73bfa1f13efe9efcebc97f823aca8c96ac1f723 (patch) | |
tree | 9edcb2270ca6c3d12e2936d8d2341254f2744ced /Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp | |
parent | 09940d721ac2cbb6173f7a3855a969f1f6e98bce (diff) | |
download | WarpX-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.cpp | 1 |
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"); |