aboutsummaryrefslogtreecommitdiff
path: root/Source/Laser/LaserProfilesImpl/LaserProfileGaussian.cpp
diff options
context:
space:
mode:
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");